Developing Apama Applications > Developing Clients > The Client Software Development Kits for C++ and Java > The library classes > Logging in Java
Logging in Java
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.
Note: Full documentation for Log4j and the Apache Logging Service project can be found at http://logging.apache.org.
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.
Copyright © Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its Subsidiaries and or/its Affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.