Package io.prometheus.client.logback
Class InstrumentedAppender
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
- io.prometheus.client.logback.InstrumentedAppender
-
- All Implemented Interfaces:
ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>
,ch.qos.logback.core.spi.ContextAware
,ch.qos.logback.core.spi.FilterAttachable<ch.qos.logback.classic.spi.ILoggingEvent>
,ch.qos.logback.core.spi.LifeCycle
public class InstrumentedAppender extends ch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
-
Field Summary
Fields Modifier and Type Field Description private static Counter
COUNTER
static java.lang.String
COUNTER_NAME
private static Counter.Child
DEBUG_LABEL
private static Counter.Child
ERROR_LABEL
private static Counter.Child
INFO_LABEL
private static Counter.Child
TRACE_LABEL
private static Counter.Child
WARN_LABEL
-
Constructor Summary
Constructors Constructor Description InstrumentedAppender()
Create a new instrumented appender using the default registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
append(ch.qos.logback.classic.spi.ILoggingEvent event)
void
start()
-
Methods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, stop, toString
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Field Detail
-
COUNTER_NAME
public static final java.lang.String COUNTER_NAME
- See Also:
- Constant Field Values
-
COUNTER
private static final Counter COUNTER
-
TRACE_LABEL
private static final Counter.Child TRACE_LABEL
-
DEBUG_LABEL
private static final Counter.Child DEBUG_LABEL
-
INFO_LABEL
private static final Counter.Child INFO_LABEL
-
WARN_LABEL
private static final Counter.Child WARN_LABEL
-
ERROR_LABEL
private static final Counter.Child ERROR_LABEL
-
-
Method Detail
-
start
public void start()
- Specified by:
start
in interfacech.qos.logback.core.spi.LifeCycle
- Overrides:
start
in classch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
append
protected void append(ch.qos.logback.classic.spi.ILoggingEvent event)
- Specified by:
append
in classch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
-