Transforming funcion into a class + using monolog see BT#6369