Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat and java.util.logging

 
Rafael Afonso
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Rafael Afonso
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:
My question was resolved in this thread in Sun Forum.
Thanks,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic