added ability to disable console logger