Add option to disable logging