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 CounterCOUNTERstatic java.lang.StringCOUNTER_NAMEprivate static Counter.ChildDEBUG_LABELprivate static Counter.ChildERROR_LABELprivate static Counter.ChildINFO_LABELprivate static Counter.ChildTRACE_LABELprivate static Counter.ChildWARN_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 voidappend(ch.qos.logback.classic.spi.ILoggingEvent event)voidstart()-
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:
startin interfacech.qos.logback.core.spi.LifeCycle- Overrides:
startin classch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
append
protected void append(ch.qos.logback.classic.spi.ILoggingEvent event)
- Specified by:
appendin classch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
-