public static class CodaHaleMetricsModule.Config.Slf4j
extends java.lang.Object
| Constructor and Description |
|---|
Slf4j() |
| Modifier and Type | Method and Description |
|---|---|
CodaHaleMetricsModule.Config.Slf4j |
durationUnit(java.util.concurrent.TimeUnit durationUnit)
Convert durations to the given time unit.
|
CodaHaleMetricsModule.Config.Slf4j |
enable(boolean enabled)
Set the state of the Slf4j publisher.
|
CodaHaleMetricsModule.Config.Slf4j |
excludeFilter(java.lang.String excludeFilter)
Set the exclude metric filter expression of the reporter.
|
java.util.concurrent.TimeUnit |
getDurationUnit()
The state of the duration time unit.
|
java.lang.String |
getExcludeFilter()
The exclude metric filter expression of the reporter.
|
java.lang.String |
getIncludeFilter()
The include metric filter expression of the reporter.
|
org.slf4j.Logger |
getLogger()
The state of the logger.
|
com.codahale.metrics.Slf4jReporter.LoggingLevel |
getLogLevel()
The state of the logging level.
|
org.slf4j.Marker |
getMarker()
The state of the marker.
|
java.lang.String |
getPrefix()
The logger prefix.
|
java.util.concurrent.TimeUnit |
getRateUnit()
The state of the rate time unit.
|
java.time.Duration |
getReporterInterval()
The interval between metrics reports.
|
CodaHaleMetricsModule.Config.Slf4j |
includeFilter(java.lang.String includeFilter)
Set the include metric filter of the reporter.
|
boolean |
isEnabled()
The state of the Slf4j publisher.
|
CodaHaleMetricsModule.Config.Slf4j |
logger(org.slf4j.Logger logger)
Log metrics to the given logger.
|
CodaHaleMetricsModule.Config.Slf4j |
logLevel(com.codahale.metrics.Slf4jReporter.LoggingLevel logLevel)
Use Logging Level when reporting.
|
CodaHaleMetricsModule.Config.Slf4j |
marker(org.slf4j.Marker marker)
Mark all logged metrics with the given marker.
|
CodaHaleMetricsModule.Config.Slf4j |
prefix(java.lang.String prefix)
Prefix all metric names with the given string.
|
CodaHaleMetricsModule.Config.Slf4j |
rateUnit(java.util.concurrent.TimeUnit rateUnit)
Convert rates to the given time unit.
|
CodaHaleMetricsModule.Config.Slf4j |
reporterInterval(java.time.Duration reporterInterval)
Configure the interval between metrics reports.
|
public org.slf4j.Marker getMarker()
public CodaHaleMetricsModule.Config.Slf4j marker(org.slf4j.Marker marker)
marker - an SLF4J Markerthispublic java.lang.String getPrefix()
public CodaHaleMetricsModule.Config.Slf4j prefix(java.lang.String prefix)
prefix - the prefix for all metric namesthispublic java.util.concurrent.TimeUnit getDurationUnit()
public CodaHaleMetricsModule.Config.Slf4j durationUnit(java.util.concurrent.TimeUnit durationUnit)
durationUnit - a unit of timethispublic java.util.concurrent.TimeUnit getRateUnit()
public CodaHaleMetricsModule.Config.Slf4j rateUnit(java.util.concurrent.TimeUnit rateUnit)
rateUnit - a unit of timethispublic com.codahale.metrics.Slf4jReporter.LoggingLevel getLogLevel()
public CodaHaleMetricsModule.Config.Slf4j logLevel(com.codahale.metrics.Slf4jReporter.LoggingLevel logLevel)
logLevel - a (@link LoggingLevel}thispublic org.slf4j.Logger getLogger()
public CodaHaleMetricsModule.Config.Slf4j logger(org.slf4j.Logger logger)
logger - an SLF4J Loggerthispublic boolean isEnabled()
public CodaHaleMetricsModule.Config.Slf4j enable(boolean enabled)
enabled - True if metrics are published to the logger. False otherwisethispublic java.lang.String getIncludeFilter()
public CodaHaleMetricsModule.Config.Slf4j includeFilter(java.lang.String includeFilter)
includeFilter - the regular expression to match on.thispublic java.lang.String getExcludeFilter()
public CodaHaleMetricsModule.Config.Slf4j excludeFilter(java.lang.String excludeFilter)
excludeFilter - the regular expression to match on.thispublic java.time.Duration getReporterInterval()
public CodaHaleMetricsModule.Config.Slf4j reporterInterval(java.time.Duration reporterInterval)
reporterInterval - the report interval