Added possibility to disable logger