Package org.apache.camel.spi
Interface LogListener
-
public interface LogListener
An event listener SPI for logging. Listeners are registered intoorg.apache.camel.processor.LogProcessor
andorg.apache.camel.processor.CamelLogProcessor
so that the logging events are delivered for both of Log Component and Log EIP.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
onLog(Exchange exchange, CamelLogger camelLogger, String message)
Invoked right before Log component or Log EIP logs.
-
-
-
Method Detail
-
onLog
String onLog(Exchange exchange, CamelLogger camelLogger, String message)
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
-
-