Add possibility to disable logging