Package ch.qos.logback.classic

Examples of ch.qos.logback.classic.LoggerContext.stop()


    Logger logger = lc.getLogger(ExitWoes2.class);

    logger.debug("Hello world.");
   
    lc.stop();
   
    StatusPrinter.print(lc);
  }
}
View Full Code Here


  static void configureViaXML_File() {
    LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
    try {
      JoranConfigurator configurator = new JoranConfigurator();
      configurator.setContext(lc);
      lc.stop();
      URL url = Loader.getResourceBySelfClassLoader("chapter7/simpleMDC.xml");
      configurator.doConfigure(url);
    } catch (JoranException je) {
      StatusPrinter.print(lc);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.