2.3. Configuring the logging System

Monolog is the Objectweb solution for logging. It is not only a new logging implementation but can be seen as a bridge between different logging implementations. A library that uses the Monolog API can be used with any logging implementation at runtime.

Furthermore some components of JOnAS like CAROL, JOTM, Tomcat etc... doesn't use the Monolog API but Jakarta commons loggins or log4j or other implementation. However all these components will be configured via the JOnAS Monolog configuration file.

2.3.1. Monolog

JOnAS Monolog configuration files are:

  • $JONAS_BASE/conf/trace.properties [3]

    which is the server side Monolog configuration file

  • $JONAS_BASE/conf/traceclient.properties

    which is used for a client in a client container.

Configuring trace messages inside JOnAS can be done in two ways:

  1. Changing the trace.properties file to configure the traces statically, before the JOnAS Server is run

  2. Using the jonas admin command or the JonasAdmin administration tool to configure the traces dynamically while the JOnAS Server is running. In this case the modification are not persistent (trace.properties file is not modified).



[3] the name can be changed via jonas.log.configfile property in jonas.properties