LibraryLink ToToggle FramesPrintFeedback

Chapter 4. Logging Configuration

The FUSE ESB runtime uses log4j as its logging mechanism. Using standard log4j configuration you can customize everything from the logging levels reported by the different runtime components to the format used when publishing the log messages.

The log4j configuration is specified in the etc/org.ops4j.pax.logging.cfg configuration file. The default configuration sets the root logger's level to INFO and the level of most of the child loggers to WARN or ERROR. The default configuration defines two appenders. One for the console and one for the log file. The console's appender's threshold is set to INFO and the file appender's threshold is set to DEBUG.

[Important]Important

FUSE ESB only supports the Java properties format of the log4j configuration.

In addition, you can set the logging level for the underlying OSGi framework. This is done by editing a property in the etc/config.properties configuration file.

Table 4.1 lists the configured loggers and their default logging level.


The default logging configuration sets the logging levels so that the log file will provide enough information to monitor the behavior of the runtime and provide clues about what caused a problem. However, the default configuration will not provide enough information to debug most problems.

The most useful logger to change when trying to debug an issue with FUSE ESB is the root logger. You will want to set its logging level to DEBUG as shown in Example 4.1.


When debugging a problem in FUSE ESB you may want to change the level of logging information that is displayed on the console. Example 4.2 shows an example of setting the root logger to DEBUG but limiting the information displayed on the console to WARN.


The logging level of the underlying OSGi framework is controlled by the felix.log.level property in the etc/config.properties configuration file. The property can be set to a number between 0 and 4. The levels match the log levels specified in the OSGi Log Service:

ValueLog Level
0None
1(default)Error
2Warning
3Information
4Debug

For more information on configuring log4j see the log4j manual.