• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat and java.util.logging

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello:
My question was resolved in this thread in Sun Forum.
Thanks,
 
reply
    Bookmark Topic Watch Topic
  • New Topic