Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Tomcat and java.util.logging

 
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,
 
The airline is called "Virgin"? Don't you want a plane to go all the way? This tiny ad will go all the way:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!