wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat and java.util.logging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat and java.util.logging" Watch "Tomcat and java.util.logging" New topic
Author

Tomcat and java.util.logging

Rafael Afonso
Ranch Hand

Joined: Jul 16, 2002
Posts: 63
Hello:
In my Web project I am starting to use java.util.logging package. In init() method from my servlet I wrote these lines:

When Tomcat starts, it is showed info and severe messages, but not fine message. I read a logging tip from Java Almanac and I changed [JDK_HOME]/jre/lib/logging.properties file. After some bad tries, I changed these lines:

So fine message was showed.
This is my question: Is not there a better way to do this? I do not want modify a JVM File configuration. Is there a way to use WEB.xml to configure logging? I created another logging.properties to my application. First I putted this in /WEB-INF/classes/ directory. It does not work. After I moved this file to /WEB-INF/classes/ directory. It does not work too. I do not know what to do. I am using Tomcat 4.1.29.
Thanks,
[ December 17, 2003: Message edited by: Rafael Afonso ]

=================================<br /> Rafael U. C. Afonso<br /> <a href="http://www.javafree.com.br" target="_blank" rel="nofollow">www.javafree.com.br</a><br />=================================<br /><i>Where is debug?<br />debug is on the table</i>
Rafael Afonso
Ranch Hand

Joined: Jul 16, 2002
Posts: 63
Hello:
My question was resolved in this thread in Sun Forum.
Thanks,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat and java.util.logging