Saturday, 10 September 2011

Turning off JDK logging

I've been developing a simple little command line application and one of the libraries I'm using seems to log debug information to the console. To clean up the console output, I had to turn off the JDK by using:
This seemed to do the trick for me, but it sounds like in some cases you may need to go a bit further and turn off logging at the global logger level:
        Logger globalLogger = Logger.getLogger(java.util.logging.Logger.GLOBAL_LOGGER_NAME);