Package org.apache.camel.spi
Interface LogListener
-
public interface LogListenerAn event listener SPI for logging. Listeners are registered intoorg.apache.camel.processor.LogProcessorandorg.apache.camel.processor.CamelLogProcessorso 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 StringonLog(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 thatCamelLoggerholds theLoggingLevelandMarker. The listener can checkCamelLogger.getLevel()to see in which log level this is going to be logged.- Parameters:
exchange- camel exchangecamelLogger-CamelLoggermessage- log message- Returns:
- log message, possibly enriched by the listener
-
-