public class InstrumentedAppender
extends org.apache.logging.log4j.core.appender.AbstractAppender
Appender
which has seven 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,
org.apache.logging.log4j.core.Filter filter,
org.apache.logging.log4j.core.Layout<? extends Serializable> layout,
boolean ignoreExceptions)
Create a new instrumented appender using the given registry.
|
InstrumentedAppender(String registryName,
org.apache.logging.log4j.core.Filter filter,
org.apache.logging.log4j.core.Layout<? extends Serializable> layout,
boolean ignoreExceptions)
Create a new instrumented appender using the given registry name.
|
Modifier and Type | Method and Description |
---|---|
void |
append(org.apache.logging.log4j.core.LogEvent event) |
void |
start() |
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, setHandler, toString
addFilter, getFilter, hasFilter, isFiltered, removeFilter, stop
getState, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping
public InstrumentedAppender(String registryName, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.Layout<? extends Serializable> layout, boolean ignoreExceptions)
registryName
- the name of the registry in SharedMetricRegistries
filter
- The Filter to associate with the Appender.layout
- The layout to use to format the event.ignoreExceptions
- If true, exceptions will be logged and suppressed. If false errors will be
logged and then passed to the application.public InstrumentedAppender(MetricRegistry registry, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.Layout<? extends Serializable> layout, boolean ignoreExceptions)
registry
- the metric registryfilter
- The Filter to associate with the Appender.layout
- The layout to use to format the event.ignoreExceptions
- If true, exceptions will be logged and suppressed. If false errors will be
logged and then passed to the application.Copyright © 2014. All Rights Reserved.