Package net.sourceforge.javautil.common.logging

Examples of net.sourceforge.javautil.common.logging.LoggingContext


   * @return The writer based logging framework
   */
  public static LoggingFrameworkWriter standardSetup (OutputStream stream, LoggerLevelStandard level) {
    LoggingFrameworkWriter lfw = new LoggingFrameworkWriter(new PrintWriter(stream, true));
    lfw.setRootLevel(level);
    new LoggingContext(lfw).setGlobal();
    LoggingFrameworkJDK.getInstance().routeTo(lfw);
    return lfw;
  }
View Full Code Here


      new File(configDir, "logging.properties")
    }) {
      if (config.exists()) {
        try {
          LogManager.getLogManager().readConfiguration(new FileInputStream(config));
          new LoggingContext(LoggingFrameworkJDK.getInstance()).setGlobal();
        } catch (Exception e) {
          ThrowableManagerRegistry.caught(e);
        }
      }
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.common.logging.LoggingContext

Copyright © 2018 www.massapicom. 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.