Package com.codahale.metrics.Slf4jReporter

Examples of com.codahale.metrics.Slf4jReporter.Builder


          reporters = Maps.newHashMap();
          REGISTRIES.put(registry, reporters);
        }
        Slf4jReporter reporter = reporters.get(logger);
        if (reporter == null) {
          Builder reporterBuilder = Slf4jReporter.forRegistry(registry)
              .filter(filter)
              .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


          reporters = new HashMap();
          REGISTRIES.put(registry, reporters);
        }
        Slf4jReporter reporter = reporters.get(logger);
        if (reporter == null) {
          Builder reporterBuilder = Slf4jReporter.forRegistry(registry)
              .filter(filter)
              .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 com.codahale.metrics.Slf4jReporter.Builder

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.