Package ch.qos.logback.classic.control

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


  static ControlLoggerContext controlContext = new ControlLoggerContext();
  static Hierarchy log4jHierarchy = new Hierarchy(new RootLogger(org.apache.log4j.Level.OFF));

  public static void main(String[] args) throws IOException, InterruptedException {

    Scenario s = ScenarioMaker.makeTypeBScenario(3000);
    System.err.print("Press a key to continue: ");
    System.in.read();


    testEmptyLoggers(s);
View Full Code Here


  static String X;

  public static void main(String[] args) throws IOException {

    Scenario s = ScenarioMaker.makeTypeBScenario(2000);

    X = ((CreateLogger) s.get(1000)).getLoggerName();
    System.out.println("name:"+X);
    System.err.print("Press a key to continue: ");
    System.in.read();
    int x1 = 100000;
    for (int i = 0; i < 1; i++) {
View Full Code Here

    hashLoggerContext.getRootLogger().setLevel(Level.OFF);
    controlContext.getRootLogger().setLevel(Level.OFF);
    //LogManager
    //jdk14FA.getLogger("").setLevel(java.util.logging.Level.OFF);

    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);
View Full Code Here

  }

  private void doScenarioedTest(int len) {
    LoggerContext lc = new LoggerContext();
    ControlLoggerContext controlContext = new ControlLoggerContext();
    Scenario s = ScenarioMaker.makeRealisticCreationScenario(len);
    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;
View Full Code Here

TOP

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

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.