public static class CodaHaleMetricsModule.Config.Slf4j extends Object
| Constructor and Description |
|---|
Slf4j() |
| Modifier and Type | Method and Description |
|---|---|
CodaHaleMetricsModule.Config.Slf4j |
durationUnit(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(String excludeFilter)
Set the exclude metric filter expression of the reporter.
|
TimeUnit |
getDurationUnit()
The state of the duration time unit.
|
String |
getExcludeFilter()
The exclude metric filter expression of the reporter.
|
String |
getIncludeFilter()
The include metric filter expression of the reporter.
|
Logger |
getLogger()
The state of the logger.
|
com.codahale.metrics.Slf4jReporter.LoggingLevel |
getLogLevel()
The state of the logging level.
|
Marker |
getMarker()
The state of the marker.
|
String |
getPrefix()
The logger prefix.
|
TimeUnit |
getRateUnit()
The state of the rate time unit.
|
Duration |
getReporterInterval()
The interval between metrics reports.
|
CodaHaleMetricsModule.Config.Slf4j |
includeFilter(String includeFilter)
Set the include metric filter of the reporter.
|
boolean |
isEnabled()
The state of the Slf4j publisher.
|
CodaHaleMetricsModule.Config.Slf4j |
logger(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(Marker marker)
Mark all logged metrics with the given marker.
|
CodaHaleMetricsModule.Config.Slf4j |
prefix(String prefix)
Prefix all metric names with the given string.
|
CodaHaleMetricsModule.Config.Slf4j |
rateUnit(TimeUnit rateUnit)
Convert rates to the given time unit.
|
CodaHaleMetricsModule.Config.Slf4j |
reporterInterval(Duration reporterInterval)
Configure the interval between metrics reports.
|
public Marker getMarker()
public CodaHaleMetricsModule.Config.Slf4j marker(Marker marker)
marker - an SLF4J Markerthispublic String getPrefix()
public CodaHaleMetricsModule.Config.Slf4j prefix(String prefix)
prefix - the prefix for all metric namesthispublic TimeUnit getDurationUnit()
public CodaHaleMetricsModule.Config.Slf4j durationUnit(TimeUnit durationUnit)
durationUnit - a unit of timethispublic TimeUnit getRateUnit()
public CodaHaleMetricsModule.Config.Slf4j rateUnit(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 Logger getLogger()
public CodaHaleMetricsModule.Config.Slf4j logger(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 String getIncludeFilter()
public CodaHaleMetricsModule.Config.Slf4j includeFilter(String includeFilter)
includeFilter - the regular expression to match on.thispublic String getExcludeFilter()
public CodaHaleMetricsModule.Config.Slf4j excludeFilter(String excludeFilter)
excludeFilter - the regular expression to match on.thispublic Duration getReporterInterval()
public CodaHaleMetricsModule.Config.Slf4j reporterInterval(Duration reporterInterval)
reporterInterval - the report interval