Package ch.qos.logback.classic

Examples of ch.qos.logback.classic.HLogger


    Scenario s = ScenarioMaker.makeTypeBScenario(1000);
    loggerName = ((CreateLogger) s.get(1000)).getLoggerName();
    System.out.println("Logger name is "+loggerName);
   
    final org.slf4j.Logger slf4jLogger = loggerContext.getLogger(loggerName);
    final HLogger hashLogger = hashLoggerContext.getLogger(loggerName);
    final ControlLogger controlLogger = controlContext.getLogger(loggerName);
    //final org.apache.log4j.Logger log4jLogger = log4jHierarchy.getLogger(loggerName);
    //final java.util.logging.Logger jdk14Logger = java.util.logging.Logger.getLogger(loggerName);
    int x1 = 1000*1000;
    for (int i = 0; i < 2; i++) {
View Full Code Here


    long result = System.nanoTime() - start;
    System.out.println("DIRECT logback logger: " + (result / len));
  }

  static void speedTestHashLogger(final int len) {
    final HLogger logger = hashLoggerContext.getLogger(loggerName);

    long start = System.nanoTime();
    for (int i = 0; i < len; i++) {
      logger.debug("some message");
    }
    long result = System.nanoTime() - start;
    System.out.println("DIRECT Hash logger: " + (result / len));
  }
View Full Code Here

TOP

Related Classes of ch.qos.logback.classic.HLogger

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.