public class Slf4jReporter extends ScheduledReporter
Logger periodically, similar to
ConsoleReporter or CsvReporter, but using the SLF4J framework instead. It also
supports specifying a Marker instance that can be used by custom appenders and filters
for the bound logging toolkit to further process metrics reports.| Modifier and Type | Class and Description |
|---|---|
static class |
Slf4jReporter.Builder
A builder for
Slf4jReporter instances. |
static class |
Slf4jReporter.LoggingLevel |
| Modifier and Type | Method and Description |
|---|---|
static Slf4jReporter.Builder |
forRegistry(MetricRegistry registry)
Returns a new
Slf4jReporter.Builder for Slf4jReporter. |
void |
report(java.util.SortedMap<java.lang.String,Gauge> gauges,
java.util.SortedMap<java.lang.String,Counter> counters,
java.util.SortedMap<java.lang.String,Histogram> histograms,
java.util.SortedMap<java.lang.String,Meter> meters,
java.util.SortedMap<java.lang.String,Timer> timers)
Called periodically by the polling thread.
|
public static Slf4jReporter.Builder forRegistry(MetricRegistry registry)
Slf4jReporter.Builder for Slf4jReporter.registry - the registry to reportSlf4jReporter.Builder instance for a Slf4jReporterpublic void report(java.util.SortedMap<java.lang.String,Gauge> gauges, java.util.SortedMap<java.lang.String,Counter> counters, java.util.SortedMap<java.lang.String,Histogram> histograms, java.util.SortedMap<java.lang.String,Meter> meters, java.util.SortedMap<java.lang.String,Timer> timers)
ScheduledReporterreport in class ScheduledReportergauges - all of the gauges in the registrycounters - all of the counters in the registryhistograms - all of the histograms in the registrymeters - all of the meters in the registrytimers - all of the timers in the registry"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"