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(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 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.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 © 2015. All rights reserved.