Developing Apama Applications > Developing Clients > The C++ and Java Client Software Development Kits > 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 Java Client SDK 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 Java Client SDK
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 © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.