SLF4J Channel Adapter
The slf4j adapter is a sink that logs the message payload through the SLF4J API.
It is useful for debugging, auditing, and logging intermediate outputs.
Usage in WireTap
The SLF4J adapter is particularly useful as a WireTap destination for audit logging:
.wireTap("audit-tap", "slf4j://audit-logger")
.toSink("kafka://output-topic")
In this case the Exchange is logged by SLF4J while simultaneously being sent to Kafka.
The slf4j adapter is exclusively a sink: it does not support use as a flow source.
|