Logging in JMon applications
The logging facilities in JMon are provided by
Log4j, a publicly available logging library for Java. These logging facilities are included in
com.apama.util.Logger. See the
API Reference for Java (Javadoc).
By default, the JMon classes will log at WARN level. The log level can be changed as described in the Javadoc for the Logger class. The Javadoc also provides instructions on how to get a reference to the Logger object in your own code so that you can produce your own logging output.
To ensure that the correlator can serialize logging behavior, specify that instances of Logger are static.