public class InstrumentedAppender
extends ch.qos.logback.core.UnsynchronizedAppenderBase<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.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_REGISTRY |
static String |
REGISTRY_PROPERTY_NAME |
| Constructor and Description |
|---|
InstrumentedAppender()
Create a new instrumented appender using the given registry name.
|
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 static final String DEFAULT_REGISTRY
public static final String REGISTRY_PROPERTY_NAME
public InstrumentedAppender()
public 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.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>protected void append(ch.qos.logback.classic.spi.ILoggingEvent event)
append in class ch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>Copyright © 2021. All rights reserved.