Package io.prometheus.client.log4j
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Counter
static final String
private static final Counter.Child
private static final Counter.Child
private static final Counter.Child
private static final Counter.Child
private static final Counter.Child
private static final Counter.Child
Fields 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:
activateOptions
in interfaceorg.apache.log4j.spi.OptionHandler
- Overrides:
activateOptions
in classorg.apache.log4j.AppenderSkeleton
-
append
protected void append(org.apache.log4j.spi.LoggingEvent event) - Specified by:
append
in classorg.apache.log4j.AppenderSkeleton
-
close
public void close() -
requiresLayout
public boolean requiresLayout()
-