How to enable logging in FUSE ESB 4.x

Solution Verified - Updated -

Environment

  • Fuse ESB 4.x
  • Fuse ESB Enterprise
  • Fuse MQ Enterprise

Issue

How to enable logging in FUSE ESB 4.x

Resolution

The default logging level can be configured by editing <Fuse ESB 4.x>/etc/org.ops4j.pax.logging.cfg.

Log data is written to <Fuse ESB>/data/logs/servicemix.log.
The logging sub shell in the servicemix console can also be used to display logging information:

karaf@root>log:display -n 25

This displays the last 25 lines from the log.

karaf@root>log:tail

This is equivalent to unix tail command and will keep appending new entries to the display whenever log is updated.

karaf@root>log:display-exception

This displays the last exception thrown

karaf@root>log:get

This displays the current log level.

karaf@root>log:set DEBUG

This dynamically sets the log level to DEBUG for all packages.

karaf@root>log:set DEBUG org.springframework

This dynamically sets the log level for the org.springframework package to DEBUG.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

2 Comments

fact:

All Supported Operating Systems

fact:

FUSE ESB