Package ratpack.dropwizard.metrics
Class Slf4jConfig
- java.lang.Object
- 
- ratpack.dropwizard.metrics.ReporterConfigSupport<T>
- 
- ratpack.dropwizard.metrics.ScheduledReporterConfigSupport<Slf4jConfig>
- 
- ratpack.dropwizard.metrics.Slf4jConfig
 
 
 
- 
 public class Slf4jConfig extends ScheduledReporterConfigSupport<Slf4jConfig> 
- 
- 
Constructor SummaryConstructors Constructor Description Slf4jConfig()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Slf4jConfigdurationUnit(TimeUnit durationUnit)Convert durations to the given time unit.TimeUnitgetDurationUnit()The state of the duration time unit.org.slf4j.LoggergetLogger()The state of the logger.com.codahale.metrics.Slf4jReporter.LoggingLevelgetLogLevel()The state of the logging level.org.slf4j.MarkergetMarker()The state of the marker.StringgetPrefix()The logger prefix.TimeUnitgetRateUnit()The state of the rate time unit.Slf4jConfiglogger(org.slf4j.Logger logger)Log metrics to the given logger.Slf4jConfiglogLevel(com.codahale.metrics.Slf4jReporter.LoggingLevel logLevel)Use Logging Level when reporting.Slf4jConfigmarker(org.slf4j.Marker marker)Mark all logged metrics with the given marker.Slf4jConfigprefix(String prefix)Prefix all metric names with the given string.Slf4jConfigrateUnit(TimeUnit rateUnit)Convert rates to the given time unit.- 
Methods inherited from class ratpack.dropwizard.metrics.ScheduledReporterConfigSupportgetReporterInterval, reporterInterval
 - 
Methods inherited from class ratpack.dropwizard.metrics.ReporterConfigSupportenable, excludeFilter, getExcludeFilter, getIncludeFilter, includeFilter, isEnabled
 
- 
 
- 
- 
- 
Method Detail- 
getMarkerpublic org.slf4j.Marker getMarker() The state of the marker.- Returns:
- the marker instance
 
 - 
markerpublic Slf4jConfig marker(org.slf4j.Marker marker) Mark all logged metrics with the given marker.- Parameters:
- marker- an SLF4J- Marker
- Returns:
- this
 
 - 
getPrefixpublic String getPrefix() The logger prefix.- Returns:
- the prefix text
 
 - 
prefixpublic Slf4jConfig prefix(String prefix) Prefix all metric names with the given string.- Parameters:
- prefix- the prefix for all metric names
- Returns:
- this
 
 - 
getDurationUnitpublic TimeUnit getDurationUnit() The state of the duration time unit.- Returns:
- the duration unit instance
 
 - 
durationUnitpublic Slf4jConfig durationUnit(TimeUnit durationUnit) Convert durations to the given time unit.- Parameters:
- durationUnit- a unit of time
- Returns:
- this
 
 - 
getRateUnitpublic TimeUnit getRateUnit() The state of the rate time unit.- Returns:
- the rate unit instance
 
 - 
rateUnitpublic Slf4jConfig rateUnit(TimeUnit rateUnit) Convert rates to the given time unit.- Parameters:
- rateUnit- a unit of time
- Returns:
- this
 
 - 
getLogLevelpublic com.codahale.metrics.Slf4jReporter.LoggingLevel getLogLevel() The state of the logging level.- Returns:
- the log level instance
 
 - 
logLevelpublic Slf4jConfig logLevel(com.codahale.metrics.Slf4jReporter.LoggingLevel logLevel) Use Logging Level when reporting.- Parameters:
- logLevel- a (@link LoggingLevel}
- Returns:
- this
 
 - 
getLoggerpublic org.slf4j.Logger getLogger() The state of the logger.- Returns:
- the logger instance
 
 - 
loggerpublic Slf4jConfig logger(org.slf4j.Logger logger) Log metrics to the given logger.- Parameters:
- logger- an SLF4J- Logger
- Returns:
- this
 
 
- 
 
-