public class InstrumentedAppender
extends ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
Appender which has six meters, one for each logging level and one for the total
number of statements being logged. The meter names are the logging level names appended to the
name of the appender.| Constructor and Description |
|---|
InstrumentedAppender(com.codahale.metrics.MetricRegistry registry)
Create a new instrumented appender using the given registry.
|
InstrumentedAppender(String registryName)
Create a new instrumented appender using the given registry name.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(ch.qos.logback.classic.spi.ILoggingEvent event) |
void |
start() |
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, stop, toStringaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic InstrumentedAppender(String registryName)
registryName - the name of the registry in SharedMetricRegistriespublic InstrumentedAppender(com.codahale.metrics.MetricRegistry registry)
registry - the metric registrypublic void start()
start in interface ch.qos.logback.core.spi.LifeCyclestart in class ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>protected void append(ch.qos.logback.classic.spi.ILoggingEvent event)
append in class ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>Copyright © 2014. All Rights Reserved.