java.util.EventListener
, EventListener
public class LoggingEventListener extends java.lang.Object implements EventListener
Constructor | 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 | 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)
processEvent
in interface EventListener
event
- the eventCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.