Package ch.qos.logback.classic.control

Examples of ch.qos.logback.classic.control.CreateLogger


  static void testEmptyLoggers(Scenario s) {

    List actionList = s.getActionList();
    int size = actionList.size();
    long start = System.nanoTime();
    CreateLogger cl = null;
    for (int i = 0; i < size; i++) {
      TestAction action = (TestAction) actionList.get(i);
      if (action instanceof CreateLogger) {
        cl = (CreateLogger) action;
      }
View Full Code Here


    int size = actionList.size();
    long start = System.nanoTime();
    for (int i = 0; i < size; i++) {
      TestAction action = (TestAction) actionList.get(i);
      if (action instanceof CreateLogger) {
        CreateLogger cl = (CreateLogger) action;
        listLoggerContext.getLogger(cl.getLoggerName());
      }
    }
    long result = System.nanoTime() - start;
    System.out.println("Average (in nanos) List logger creation: " + (result / s.size()));
View Full Code Here

    int size = actionList.size();
    long start = System.nanoTime();
    for (int i = 0; i < size; i++) {
      TestAction action = (TestAction) actionList.get(i);
      if (action instanceof CreateLogger) {
        CreateLogger cl = (CreateLogger) action;
        hashLoggerContext.getLogger(cl.getLoggerName());
      }
    }
    long result = System.nanoTime() - start;
    System.out.println("Average (in nanos) Hash logger creation: " + (result / s.size()));
View Full Code Here

    int size = actionList.size();
    long start = System.nanoTime();
    for (int i = 0; i < size; i++) {
      TestAction action = (TestAction) actionList.get(i);
      if (action instanceof CreateLogger) {
        CreateLogger cl = (CreateLogger) action;
        controlContext.getLogger(cl.getLoggerName());
      }
    }
    long result = System.nanoTime() - start;
    System.out.println("Average (in nanos) Control logger creation: " + (result / s.size()));
  }
View Full Code Here

    int size = actionList.size();
    long start = System.nanoTime();
    for (int i = 0; i < size; i++) {
      TestAction action = (TestAction) actionList.get(i);
      if (action instanceof CreateLogger) {
        CreateLogger cl = (CreateLogger) action;
        log4jHierarchy.getLogger(cl.getLoggerName());
      }
    }
    long result = System.nanoTime() - start;
    System.out.println("Average (in nanos) LOG4J logger creation: " + (result / s.size()));
  }
View Full Code Here

    int size = actionList.size();
    long start = System.nanoTime();
    for (int i = 0; i < size; i++) {
      TestAction action = (TestAction) actionList.get(i);
      if (action instanceof CreateLogger) {
        CreateLogger cl = (CreateLogger) action;
        java.util.logging.Logger.getLogger(cl.getLoggerName());
      }
    }
    long result = System.nanoTime() - start;
    System.out.println("Average (in nanos) JUL logger creation: " + (result / s.size()));
  }
View Full Code Here

    List actionList = s.getActionList();
    int size = actionList.size();
    for (int i = 0; i < size; i++) {
      ScenarioAction action = (ScenarioAction) actionList.get(i);
      if (action instanceof CreateLogger) {
        CreateLogger cl = (CreateLogger) action;
        lc.getLogger(cl.getLoggerName());
        controlContext.getLogger(cl.getLoggerName());
      } else if (action instanceof SetLevel) {
        SetLevel sl = (SetLevel) action;
        Logger l = lc.getLogger(sl.getLoggerName());
        ControlLogger controlLogger = controlContext.getLogger(sl.getLoggerName());
        l.setLevel(sl.getLevel());
View Full Code Here

TOP

Related Classes of ch.qos.logback.classic.control.CreateLogger

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.