OSGi PAX Logging

OSGi PAX Logging

Description: The OSGi pax-logging component allows receiving log events from OPS4j PaxLogging and send them to Camel routes.
Scheme: paxlogging
Syntax: paxlogging:appender
Maven: org.apache.camel/camel-paxlogging/2.16.1

Paxlogging endpoint.

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.
exchangePattern parameter advanced InOnly org.apache.camel.ExchangePattern InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating 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.