Added ability to disable log collecting