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(com.codahale.metrics.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 SharedMetricRegistriespublic InstrumentedAppender(com.codahale.metrics.MetricRegistry registry)
registry - the metric registrypublic void activateOptions()
activateOptions in interface org.apache.log4j.spi.OptionHandleractivateOptions in class org.apache.log4j.AppenderSkeletonprotected void append(org.apache.log4j.spi.LoggingEvent event)
append in class org.apache.log4j.AppenderSkeletonpublic void close()
public boolean requiresLayout()
Copyright © 2014. All Rights Reserved.