Change log level dynamically - http://blogs.averconsulting.com/2006/12/13/changing-log4j-logging-levels-dynamically.aspx