Disable logging when running the main class.