Package org.apache.fop.events
Class LoggingEventListener
java.lang.Object
org.apache.fop.events.LoggingEventListener
- All Implemented Interfaces:
EventListener
,org.apache.fop.events.EventListener
EventListener implementation that redirects events to Commons Logging. The events are
converted to localized messages.
-
Constructor Summary
ConstructorDescriptionCreates 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. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.logging.Log
getLog()
Returns the target logger for this instance.void
processEvent
(org.apache.fop.events.Event event)
-
Constructor Details
-
LoggingEventListener
public LoggingEventListener()Creates an instance logging to the default log category of this class. -
LoggingEventListener
public LoggingEventListener(org.apache.commons.logging.Log log) Creates an instance logging to a given logger. Events with fatal severity level will be skipped.- Parameters:
log
- the target logger
-
LoggingEventListener
public LoggingEventListener(org.apache.commons.logging.Log log, boolean skipFatal) Creates an instance logging to a given logger.- Parameters:
log
- the target loggerskipFatal
- true if events with fatal severity level should be skipped (i.e. not logged)
-
-
Method Details
-
getLog
public org.apache.commons.logging.Log getLog()Returns the target logger for this instance.- Returns:
- the target logger
-
processEvent
public void processEvent(org.apache.fop.events.Event event) - Specified by:
processEvent
in interfaceorg.apache.fop.events.EventListener
-