I have a vanilla tomcat, I want to log specific financial-related requests
to a separate log file.

I've added the following logging.properties to webapps/ROOT/WEB-INF/classes:

   handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
   org.apache.juli.FileHandler.level=ALL
   org.apache.juli.FileHandler.directory=${catalina.base}/logs
   org.apache.juli.FileHandler.prefix=financials-
   java.util.logging.ConsoleHandler.level=FINE
 
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
   financials.level=ALL

And in a JSP I have:

   Log financialslog = LogFactory.getLog("financials");
   financialslog.error("test");


I always make mistakes with these logging APIs, probably it's something
simple here, but I'm dumbfounded. Nothing gets logged.

Thanks for any help.
David




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to