Package org.slf4j.helpers

Examples of org.slf4j.helpers.BasicMarkerFactory


  final Marker multiComp;

  short diff = Differentiator.getDiffentiator();
 
  public BasicMarkerTest() {
    factory = new BasicMarkerFactory();

    blue = factory.getMarker(BLUE_STR);
    red = factory.getMarker(RED_STR);
    green = factory.getMarker(GREEN_STR);
    comp = factory.getMarker(COMP_STR);
View Full Code Here


    final String CHILD_NAME=diffPrefix+CHILD_MARKER_STR;
    Marker parent = factory.getMarker(PARENT_NAME);
    Marker child = factory.getMarker(CHILD_NAME);
    parent.add(child);
  
    IMarkerFactory otherFactory = new BasicMarkerFactory();
    Marker otherParent = otherFactory.getMarker(PARENT_NAME);
    Marker otherChild = otherFactory.getMarker(CHILD_NAME);
   
    assertTrue(parent.contains(otherParent));
    assertTrue(parent.contains(otherChild));
   
    assertTrue(parent.remove(otherChild));
View Full Code Here

              .convertDurationsTo(defaultDurationUnit)
              .convertRatesTo(defaultRateUnit)
              .outputTo(LoggerFactory.getLogger(logger));
         
          if (marker != null) {
            reporterBuilder = reporterBuilder.markWith(new BasicMarkerFactory().getMarker(marker));
          }
             
          reporter = reporterBuilder.build();
          reporter.start(frequency, TimeUnit.NANOSECONDS);
          reporters.put(logger, reporter);
View Full Code Here

              .convertDurationsTo(defaultDurationUnit)
              .convertRatesTo(defaultRateUnit)
              .outputTo(LoggerFactory.getLogger(logger));
         
          if (marker != null) {
            reporterBuilder = reporterBuilder.markWith(new BasicMarkerFactory().getMarker(marker));
          }
             
          reporter = reporterBuilder.build();
          reporter.start(frequency, TimeUnit.NANOSECONDS);
          reporters.put(logger, reporter);
View Full Code Here

TOP

Related Classes of org.slf4j.helpers.BasicMarkerFactory

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.