OSGi PAX Logging

OSGi PAX Logging

Scheme: paxlogging
Syntax: paxlogging:appender
Description: The paxlogging component can be used in an OSGi environment to receive PaxLogging events and process them.
Deprecated:false
ConsumerOnly:true
Async:false
Maven: org.apache.camel/camel-paxlogging/2.18.1.redhat-000024

The paxlogging component can be used in an OSGi environment to receive PaxLogging events and process them.

Name Kind Group Required Default Type Enum Description
appender path consumer true java.lang.String Appender is the name of the pax appender that need to be configured in the PaxLogging service configuration.
bridgeErrorHandler parameter consumer boolean Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN/ERROR level and ignored.
exceptionHandler parameter consumer (advanced) org.apache.camel.spi.ExceptionHandler To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored.
exchangePattern parameter consumer (advanced) org.apache.camel.ExchangePattern InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the exchange pattern when the consumer creates an exchange.
synchronous parameter advanced false boolean Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).

paxlogging consumer

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.