public static void main(String[] args) {
// make log4j be quiet by default
Logger log4jRoot = Logger.getRootLogger();
if (!log4jRoot.getAllAppenders().hasMoreElements()) {
log4jRoot.addAppender(new NullAppender());
}
// add ConsoleAppender to "org.unreserved" logger
PatternLayout sysoutLayout = new PatternLayout("%-5p %c{1}: %m%n");
sysout = new ConsoleAppender(sysoutLayout, "System.out");