You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Ceki Gülcü <cg...@qos.ch> on 2001/05/27 14:01:04 UTC

Observations on catalina logging


Hello,

In case catalina decides to use log4j as its logging API, here is a
series of observations.

1) Thanks to the separation of loaders, it is possible to keep
catalina logging separate from user (servlet) logging even of both
catalina and user servlets use log4j.

2) Logging code in catalina needs to modified to use log4j. The
existing concept of context logging can be replaced by categories.

3) Existing logging configuration instructions need to be converted to
log4j configuration files. Log4j currently supports config files in
XML or key=value (properties) format. As XML is a prerequisite for catalina, you'd probably want to use XML config files for log4j. 

4) In case a single category hierarchy does not provide sufficient
flexibility, it is possible to work with multiple category
hierarchies. Each hierarchy can be configured using a distinct
configuration file.

That's it for now. Best regards, Ceki


--
Ceki Gülcü