Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat logging config

Status
Not open for further replies.

PalinIsATwit

Programmer
Sep 24, 2010
1
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top