Jump to: navigation, search

Difference between revisions of "COSMOS Logging"

(Logging for Web Applications and Web Services)
(Logging Configurations)
Line 2: Line 2:
 
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 [http://logging.apache.org/log4j/1.2/index.html log4j website].
 
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 [http://logging.apache.org/log4j/1.2/index.html log4j website].
 
== Logging Configurations ==
 
== 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 ==
 
== Logging API ==
 
== Log Levels ==
 
== Log Levels ==

Revision as of 14:02, 13 May 2008

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