Package ch.qos.logback.classic

Examples of ch.qos.logback.classic.Logger.info()


    logger.info("Check enclosed.");
    logger.debug("The most beautiful two words in English.");

    MDC.put("first", "Richard");
    MDC.put("last", "Nixon");
    logger.info("I am not a crook.");
    logger.info("Attributed to the former US president. 17 Nov 1973.");
  }
}
View Full Code Here


    logger.debug("The most beautiful two words in English.");

    MDC.put("first", "Richard");
    MDC.put("last", "Nixon");
    logger.info("I am not a crook.");
    logger.info("Attributed to the former US president. 17 Nov 1973.");
  }
}
View Full Code Here

    // warn log gets appended to appender
    logger.warn("");

    // now get it as string.
    String log = StringUtils.newStringUtf8(appender.getOutputStream().toByteArray());
    logger.info(log);

    // String is based on MockHttpServletRequest constants.
    // If this fails WicketWebPatternEncoder bugged or constants changed.
    Assert.assertEquals(
      "post http://localhost/context/?null null null 127.0.0.1:80 127.0.0.1:80 null Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2",
View Full Code Here

    // We now put the last name
    MDC.put("last", "Parker");

    // The most beautiful two words in the English language according
    // to Dorothy Parker:
    logger.info("Check enclosed.");
    logger.debug("The most beautiful two words in English.");

    MDC.put("first", "Richard");
    MDC.put("last", "Nixon");
    logger.info("I am not a crook.");
View Full Code Here

    logger.info("Check enclosed.");
    logger.debug("The most beautiful two words in English.");

    MDC.put("first", "Richard");
    MDC.put("last", "Nixon");
    logger.info("I am not a crook.");
    logger.info("Attributed to the former US president. 17 Nov 1973.");
  }
}
View Full Code Here

    logger.debug("The most beautiful two words in English.");

    MDC.put("first", "Richard");
    MDC.put("last", "Nixon");
    logger.info("I am not a crook.");
    logger.info("Attributed to the former US president. 17 Nov 1973.");
  }
}
View Full Code Here

  @Override
  public void runThroughputTest(final int lines, final Histogram histogram) {
    final long s1 = System.nanoTime();
    final Logger logger = (Logger) LoggerFactory.getLogger(getClass());
    for (int j = 0; j < lines; j++) {
      logger.info(THROUGHPUT_MSG);
    }
    final long s2 = System.nanoTime();
    final long opsPerSec = (1000L * 1000L * 1000L * lines) / (s2 - s1);
    histogram.addObservation(opsPerSec);
  }
View Full Code Here

  public void runLatencyTest(final int samples, final Histogram histogram,
      final long nanoTimeCost, final int threadCount) {
    final Logger logger = (Logger) LoggerFactory.getLogger(getClass());
    for (int i = 0; i < samples; i++) {
      final long s1 = System.nanoTime();
      logger.info(LATENCY_MSG);
      final long s2 = System.nanoTime();
      final long value = s2 - s1 - nanoTimeCost;
      if (value > 0) {
        histogram.addObservation(value);
      }
View Full Code Here

  }

  @Override
  public void log(final String msg) {
    final Logger logger = (Logger) LoggerFactory.getLogger(getClass());
    logger.info(msg);
  }
}
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.