public class ChainsawAppenderHandler
extends org.apache.log4j.AppenderSkeleton
Constructor and Description |
---|
ChainsawAppenderHandler() |
ChainsawAppenderHandler(ChainsawAppender appender) |
Modifier and Type | Method and Description |
---|---|
void |
addCustomEventBatchListener(String identifier,
EventBatchListener l) |
void |
addEventBatchListener(EventBatchListener l) |
void |
addPropertyChangeListener(PropertyChangeListener listener) |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
void |
append(org.apache.log4j.spi.LoggingEvent event) |
void |
close() |
double |
getDataRate()
Exposes the current Data rate calculated.
|
String |
getIdentifierExpression() |
int |
getQueueInterval() |
static void |
main(String[] args)
A little test bed
|
void |
removeEventBatchListener(EventBatchListener l) |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
boolean |
requiresLayout() |
void |
setIdentifierExpression(String identifierExpression) |
void |
setQueueInterval(int interval) |
public ChainsawAppenderHandler(ChainsawAppender appender)
public ChainsawAppenderHandler()
public void setIdentifierExpression(String identifierExpression)
public String getIdentifierExpression()
public void addCustomEventBatchListener(String identifier, EventBatchListener l) throws IllegalArgumentException
IllegalArgumentException
public void addEventBatchListener(EventBatchListener l)
public void removeEventBatchListener(EventBatchListener l)
public void append(org.apache.log4j.spi.LoggingEvent event)
append
in class org.apache.log4j.AppenderSkeleton
public void close()
public boolean requiresLayout()
public int getQueueInterval()
public void setQueueInterval(int interval)
public static void main(String[] args) throws InterruptedException
args
- InterruptedException
public double getDataRate()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
propertyName
- listener
- public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
propertyName
- listener
- Copyright © 2002-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache Chainsaw, Chainsaw, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.