Jump to: navigation, search

COSMOS Logging

Revision as of 15:02, 13 May 2008 by Hkyleung.ca.ibm.com (Talk | contribs) (Logging Configurations)

Logging for Web Applications and Web Services

Log4j will be used to do logging in web applications (such as the COSMOS UI) and web services (data managers). Information about log4j can be found at the log4j website.

Logging Configurations

To configure a web applciation to use log4j, we need a configuration file called log4j.properties in the classpath, usually put under WebContent/WEB-INF/classes. Axis2.jar comes with a log4j.properties that contains some default settings.

Logging API

Log Levels

Naming Convention for Message Keys

Externalize log messages

Logging for Eclipse Plugins