You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

4.3. Logging system

Apache ServiceMix Kernel provides a powerful logging system based on OPS4j Pax Logging.

In addition to being a standard OSGi Log service, it supports the following APIs:

  • Apache Commons Logging
  • SLF4J
  • Apache Log4j
  • Java Util Logging

The Kernel also comes with a set of console commands that can be used to display, view and change the log levels.

Configuration

The configuration of the logging system uses a standard Log4j configuration file at the following location:

[kernel]/etc/org.ops4j.pax.logging.cfg

You can edit this file at runtime and any change will be reloaded and be effective immediately.

Commands

The log subshell comes with 3 commands:

  • d or display: display the last log entries
  • get: show the log levels
  • set: set the log levels

#top

  • No labels