Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 124. Pax-Logging
PaxLogging component Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
Available in Camel 2.6
The
paxlogging component can be used in an OSGi environment to receive PaxLogging events and process them.
Dependencies Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
Maven users need to add the following dependency to their
pom.xml
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-paxlogging</artifactId>
<version>${camel-version}</version>
</dependency>
where
$\{camel-version\} must be replaced by the actual version of Camel (2.6.0 or higher).
URI format Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
paxlogging:appender
where
appender is the name of the pax appender that need to be configured in the PaxLogging service configuration.
URI options Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
| Name | Default value | Description |
|---|
Message headers Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
| Name | Type | Message | Description |
|---|
Message body Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
The
in message body will be set to the received PaxLoggingEvent.
Example usage Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
<route>
<from uri="paxlogging:camel"/>
<to uri="stream:out"/>
</route>
Configuration:
log4j.rootLogger=INFO, out, osgi:VmLogAppender, osgi:camel