public class InstrumentedAppender
extends org.apache.log4j.AppenderSkeleton
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)
Create a new instrumented appender using the given registry.
|
InstrumentedAppender(String registryName)
Create a new instrumented appender using the given registry name.
|
Modifier and Type | Method and Description |
---|---|
void |
activateOptions() |
protected void |
append(org.apache.log4j.spi.LoggingEvent event) |
void |
close() |
boolean |
requiresLayout() |
public InstrumentedAppender(String registryName)
registryName
- the name of the registry in SharedMetricRegistries
public InstrumentedAppender(MetricRegistry registry)
registry
- the metric registrypublic void activateOptions()
activateOptions
in interface org.apache.log4j.spi.OptionHandler
activateOptions
in class org.apache.log4j.AppenderSkeleton
protected void append(org.apache.log4j.spi.LoggingEvent event)
append
in class org.apache.log4j.AppenderSkeleton
public void close()
public boolean requiresLayout()
Copyright © 2014. All Rights Reserved.