Este conteúdo não está disponível no idioma selecionado.

Chapter 76. Pax-Logging


PaxLogging component

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

Dependencies

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>

Copy to Clipboard Toggle word wrap
where $\{camel-version\} must be replaced by the actual version of Camel (2.6.0 or higher).

URI format

paxlogging:appender

Copy to Clipboard Toggle word wrap
where appender is the name of the pax appender that need to be configured in the PaxLogging service configuration.

URI options

Expand
Name Default value Description

Message headers

Expand
Name Type Message Description

Message body

The in message body will be set to the received PaxLoggingEvent.

Example usage

<route>
    <from uri="paxlogging:camel"/>
    <to uri="stream:out"/>
</route>

Copy to Clipboard Toggle word wrap
Configuration:
log4j.rootLogger=INFO, out, osgi:VmLogAppender, osgi:camel

Copy to Clipboard Toggle word wrap
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat