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(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, toString
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
public 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 SharedMetricRegistries
public InstrumentedAppender(MetricRegistry registry)
registry
- the metric registrypublic void start()
start
in interface ch.qos.logback.core.spi.LifeCycle
start
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 © 2014. All Rights Reserved.