public class Slf4jReporterFactory extends BaseReporterFactory
ReporterFactory
for Slf4jReporter
instances.
Configuration Parameters:
Name | Default | Description |
logger | metrics | The name of the logger to write metrics to. |
markerName | (none) | The name of the marker to mark logged metrics with. |
See BaseReporterFactory for more options. |
Constructor and Description |
---|
Slf4jReporterFactory() |
Modifier and Type | Method and Description |
---|---|
com.codahale.metrics.ScheduledReporter |
build(com.codahale.metrics.MetricRegistry registry)
Configures and builds a
ScheduledReporter instance for the given registry. |
org.slf4j.Logger |
getLogger() |
String |
getLoggerName() |
String |
getMarkerName() |
void |
setLoggerName(String loggerName) |
void |
setMarkerName(String markerName) |
getDisabledAttributes, getDurationUnit, getExcludes, getExcludesAttributes, getFilter, getFrequency, getIncludes, getIncludesAttributes, getRateUnit, getUseRegexFilters, setDurationUnit, setExcludes, setExcludesAttributes, setFrequency, setIncludes, setIncludesAttributes, setRateUnit, setUseRegexFilters
public String getLoggerName()
public void setLoggerName(String loggerName)
public org.slf4j.Logger getLogger()
public String getMarkerName()
public void setMarkerName(String markerName)
public com.codahale.metrics.ScheduledReporter build(com.codahale.metrics.MetricRegistry registry)
ReporterFactory
ScheduledReporter
instance for the given registry.registry
- the metrics registry to report metrics from.Copyright © 2017. All rights reserved.