Package org.apache.camel.spi
Interface LogListener
public interface LogListener
An event listener SPI for logging. Listeners are registered into
org.apache.camel.processor.LogProcessor
and
org.apache.camel.processor.CamelLogProcessor
so that the logging events are delivered for both of Log
Component and Log EIP.-
Method Summary
Modifier and TypeMethodDescriptiononLog
(Exchange exchange, CamelLogger camelLogger, String message) Invoked right before Log component or Log EIP logs.
-
Method Details
-
onLog
Invoked right before Log component or Log EIP logs. Note thatCamelLogger
holds theLoggingLevel
andMarker
. The listener can checkCamelLogger.getLevel()
to see in which log level this is going to be logged.- Parameters:
exchange
- camel exchangecamelLogger
-CamelLogger
message
- log message- Returns:
- log message, possibly enriched by the listener
-