- All Implemented Interfaces:
- org.apache.camel.Consumer, org.apache.camel.EndpointAware, org.apache.camel.RouteAware, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService, org.ops4j.pax.logging.spi.PaxAppender
public class PaxLoggingConsumer
extends org.apache.camel.impl.DefaultConsumer
implements org.ops4j.pax.logging.spi.PaxAppender
Paxlogging consumer.
This camel consumer will register a paxlogging appender and will
receive all logging events and send them into the route.
To avoid generating new logging events from sending the message,
an MDC attribute is set in the sending thread, and all log events
from this thread are ignored.
Camel exchanges are actually sent from a specific thread to make
sure the log events are cleanly separated.