Revert "Added ability to disable logging"

This reverts commit d9f80c230123adb5b60ef148019fbae9fd258c2e.