public class LoggingEventListener extends 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) |
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)
Copyright © 2025 Apache Software Foundation. All rights reserved.