Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes tomcat webapp logging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat webapp logging" Watch "tomcat webapp logging" New topic
Author

tomcat webapp logging

Donald Winston
Greenhorn

Joined: Jul 16, 2010
Posts: 16
I can't get logging to work properly with tomcat. The file handler prefix works but anything below INFO does not show up in the log! What could be wrong? I declare the logger in my classes like the following:
private static Logger logger = Logger.getLogger(JessServletCommand.class.getName());

My logging.properties file is in my WEB-INF/classes directory. It is the following:

handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

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

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tomcat webapp logging
 
Similar Threads
tomcat "logging.properties"
Is TOMCAT'S JULI logging levels broken on Linux?
NX: which logging file?
why the logging is not working ?
Per-Webapp logging with java.util.logging