Re: Tomcat Logging Not Working Properly
On 24.09.2010 16:05, Donald Winston wrote: 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 This part only configure the handlers. You need to set the level and the loggers as well, so that the loggers actually produce the messages. The level on the handlers is only kind of additional filter the be able to e.g. write different amounts to console and file. Examples for configuring loggers are contained in the default conf/logging.properties shipped with Tomcat: Examples: my.package.level = FINE my.otherpackage.SomeClass.level=FINEST my.badpackage.SomeNoisyClass.level=ERROR Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Logging Not Working Properly
On 25/09/2010 02:51, Donald Winston wrote: resurrection.level=FINE (thanks everybody. You were helpful) You should ask for your money back. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Tomcat Logging Not Working Properly
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
Re: Tomcat Logging Not Working Properly
resurrection.level=FINE (thanks everybody. You were helpful) On Sep 24, 2010, at 10:05 AM, Donald Winston wrote: 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 Donald Paul Winston satchwins...@yahoo.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Logging Not Working Properly
On Sat, Sep 25, 2010 at 3:51 AM, Donald Winston satchwins...@yahoo.com wrote: resurrection.level=FINE (thanks everybody. You were helpful) Hey If I don't know I don't answer. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org