Class InstrumentedAppender
java.lang.Object
org.apache.log4j.AppenderSkeleton
io.prometheus.client.log4j.InstrumentedAppender
- All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler
public class InstrumentedAppender
extends org.apache.log4j.AppenderSkeleton
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.log4j.AppenderSkeleton
org.apache.log4j.AppenderSkeleton.NoOpErrorHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Counterstatic final Stringprivate static final Counter.Childprivate static final Counter.Childprivate static final Counter.Childprivate static final Counter.Childprivate static final Counter.Childprivate static final Counter.ChildFields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instrumented appender using the default registry. -
Method Summary
Methods inherited from class org.apache.log4j.AppenderSkeleton
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
-
Field Details
-
COUNTER_NAME
- See Also:
-
COUNTER
-
TRACE_LABEL
-
DEBUG_LABEL
-
INFO_LABEL
-
WARN_LABEL
-
ERROR_LABEL
-
FATAL_LABEL
-
-
Constructor Details
-
InstrumentedAppender
public InstrumentedAppender()Create a new instrumented appender using the default registry.
-
-
Method Details
-
activateOptions
public void activateOptions()- Specified by:
activateOptionsin interfaceorg.apache.log4j.spi.OptionHandler- Overrides:
activateOptionsin classorg.apache.log4j.AppenderSkeleton
-
append
protected void append(org.apache.log4j.spi.LoggingEvent event) - Specified by:
appendin classorg.apache.log4j.AppenderSkeleton
-
close
public void close() -
requiresLayout
public boolean requiresLayout()
-