howto configure logging?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

howto configure logging?

Ryan McKinley
What is the best way to configure the log level etc?  I know how to do
this with log4j, but not java.util.logging.

Is there something better then:  log.setLevel( Level.FINE )?

thanks
Reply | Threaded
Open this post in threaded view
|

Re: howto configure logging?

Chris Hostetter-3

in general, this can be controlled using a LogManager that can either be a
class you want to use, or a properties file, it's specified using a system
property .... the java logging documentation explains all of htis...

http://java.sun.com/j2se/1.5.0/docs/guide/logging/overview.html#1.8

But a lot of "enterprise" servlet containers have their own way to
specifying what logging configuration options you want it to be using when
it starts up the individual webapps.



-Hoss