How to Enable Logging

The OGSA-DAI code base features integrated Log4J logging. When enabled, a log file will be created describing the actions of the OGSA-DAI code. It can be useful to refer to this file when trouble shooting. Note however that logging does carry an overhead, so may be disabled for production systems.

To enable logging within OGSA-DAI under Apache Tomcat:

  1. If you have not already done so, create a file called log4j.properties.
  2. Move the file.
  3. Set the CATALINA_OPTS environment variable (where LOGFILEPATH is the fully-qualified path to your log4j.properties file:
  4. Shutdown and restart Tomcat.

The log file will be created in the directory where you start Tomcat.

On Windows, if using a desktop shortcut you should check the shortcut to see where it's starting Tomcat.