public void setUp() throws Exception { // Setup a console appender BasicConfigurator.resetConfiguration(); PatternLayout layout = new PatternLayout("%r %-5p [%c{1}] %m%n"); ConsoleAppender appender = new ConsoleAppender(layout); BasicConfigurator.configure(appender); }
public void setUp() throws Exception { // Setup a console appender BasicConfigurator.resetConfiguration(); PatternLayout layout = new PatternLayout("%r %-5p [%c{1}] %m%n"); ConsoleAppender appender = new ConsoleAppender(layout); BasicConfigurator.configure(appender); }
BasicConfigurator.resetConfiguration(); ConsoleAppender consoleAppender = new ConsoleAppender( new PatternLayout("<%d{yyMMdd HHmmss} %5p %C{1}:%L> %m%n"), ConsoleAppender.SYSTEM_ERR);
BasicConfigurator.resetConfiguration(); PatternLayout layout = new PatternLayout("%r %-5p [%c{1}] %m%n"); ConsoleAppender appender = new ConsoleAppender(layout);
BasicConfigurator.resetConfiguration(); PatternLayout layout = new PatternLayout("%r %-5p [%c{1}] %m%n"); ConsoleAppender appender = new ConsoleAppender(layout);
/** * Sets up logging to be in line with the Ant logging system. It should be called by * subclasses from the "execute" method. */ protected void configureLogging() { Configuration.setLoggingConfigured(true); // reset is needed since when multiple Cayenne tasks are loaded via Antlib each // one adds its own appender.. // TODO: this is a really a bad solution ... each task would have to reset shared // resource whenever its execution starts... BasicConfigurator.resetConfiguration(); BasicConfigurator.configure(new AntAppender(this)); } }
/** * Sets up logging to be in line with the Ant logging system. It should be called by * subclasses from the "execute" method. */ protected void configureLogging() { Configuration.setLoggingConfigured(true); // reset is needed since when multiple Cayenne tasks are loaded via Antlib each // one adds its own appender.. // TODO: this is a really a bad solution ... each task would have to reset shared // resource whenever its execution starts... BasicConfigurator.resetConfiguration(); BasicConfigurator.configure(new AntAppender(this)); } }
BasicConfigurator.resetConfiguration( );
@BeforeClass public static void initialize() { BasicConfigurator.resetConfiguration(); BasicConfigurator.configure(); }
@BeforeClass public static void initialize() { BasicConfigurator.resetConfiguration(); BasicConfigurator.configure(); }
BasicConfigurator.resetConfiguration(); BasicConfigurator.configure(new NullAppender()); } else {
logger.error("log4j xml file " + xmlfile.getPath() + " can't be read, log4j not configured"); } else { BasicConfigurator.resetConfiguration(); DOMConfigurator.configure(xmlfile.getPath()); nologging = true; logger.error("log4j properties file " + propfile.getPath() + " can't be read, log4j not configured"); } else { BasicConfigurator.resetConfiguration(); PropertyConfigurator.configure(propfile.getPath()); nologging = true;
BasicConfigurator.resetConfiguration(); BasicConfigurator.configure(new NullAppender()); } else {
BasicConfigurator.resetConfiguration();