1 16 17 21 package org.apache.log4j; 22 23 24 33 public class BasicConfigurator { 34 35 protected BasicConfigurator() { 36 } 37 38 42 static 43 public 44 void configure() { 45 Logger root = Logger.getRootLogger(); 46 root.addAppender(new ConsoleAppender( 47 new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN))); 48 } 49 50 54 static 55 public 56 void configure(Appender appender) { 57 Logger root = Logger.getRootLogger(); 58 root.addAppender(appender); 59 } 60 61 67 public 68 static 69 void resetConfiguration() { 70 LogManager.resetConfiguration(); 71 } 72 } 73 | Popular Tags |