public class LoggingEventListener extends java.lang.Object implements EventListener
Constructor and Description |
---|
LoggingEventListener()
Creates an instance logging to the default log category of this class.
|
LoggingEventListener(org.apache.commons.logging.Log log)
Creates an instance logging to a given logger.
|
LoggingEventListener(org.apache.commons.logging.Log log,
boolean skipFatal)
Creates an instance logging to a given logger.
|
Modifier and Type | Method and Description |
---|---|
org.apache.commons.logging.Log |
getLog()
Returns the target logger for this instance.
|
void |
processEvent(Event event)
This method is called for each event that is generated.
|
public LoggingEventListener()
public LoggingEventListener(org.apache.commons.logging.Log log)
log
- the target loggerpublic LoggingEventListener(org.apache.commons.logging.Log log, boolean skipFatal)
log
- the target loggerskipFatal
- true if events with fatal severity level should be skipped (i.e. not logged)public org.apache.commons.logging.Log getLog()
public void processEvent(Event event)
event
- the eventCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.