Hi,

I'd like to configure my webapp to log into a separate file. (Actually, I'd like to have two files, one with only the SEVERE messages and one with all messages, but let's start with an easy example here.)

This is a Debian 5.0 server.

The webapp is installed in /var/lib/tomcat5.5/webapps/productionserver_test, and I have created a file /var/lib/tomcat5.5/webapps/productionserver_test/WEB-INF/classes/logging.properties as per the tutorials with the following content:


handlers= org.apache.juli.FileHandler

org.apache.juli.FileHandler.level = ALL
org.apache.juli.FileHandler.directory = ${catalina.base}/logs/productionserver_test
org.apache.juli.FileHandler.prefix = productionserver_test

com.gfii.productionserver.handlers = org.apache.juli.FileHandler


The class "com.gfii.productionserver" is the name of the logger. In the webapp, I call Logger.getLogger("com.gfii.productionserver") whenever I need to have access to the logger.

When I add this logging.properties file, this has two effects:

- Logging information for "com.gfii.productionserver" is not logged to the main Tomcat logs anymore
- The directory "${catalina.base}/logs/productionserver_test" is created

However, no log files are created in this directory.

What am I doing wrong? Please let me know if you need more information.

Thanks in advance!


Markus


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to