The logging facilities in Java are significantly more powerful than in C++. Beginning with Apama version 2.1, the underlying Client SDK for Java makes use of Log4j, a publicly available logging library for Java. Previously it made use of Apama’s SimpleLogger class. For convenience, Apama provides a wrapper class that abstracts the logging capabilities provided by either, and it is this interface that is used by the Client SDK for Java.
These logging facilities are provided in
com.apama.util.Logger, for which
Javadoc is provided.
The author of a Java client need not bother with the standard logging unless they want to modify its operating parameters. By default the SDK 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.