First, the level name to use is FINE , not DEBUG . Suppose for a minute that DEBUG valid, as this makes the following explanation more understandable ...
In the Handler specific properties section, you set the logging level for these handlers to DEBUG . This means that handlers will process any log messages with a level of DEBUG or higher. This does not necessarily mean that DEBUG messages are actually passed to the handlers.
In the Facility specific properties section, you set the logging level for several explicit log names to DEBUG . For these loggers, all handlers are processed at DEBUG or higher. .
The default logging level is INFO , and besides the logs mentioned in the Facility specific properties section, all loggers will have this level.
If you want to see all FINE posts, add this:
.level = FINE
However, this will result in a large number of log messages. It might be more useful to set the logging level for your code:
your.package.level = FINE
See Tomcat 6 / Tomcat 7 logging documentation for more information. The following logging.properties file example uses FINE instead of DEBUG :
... 1catalina.org.apache.juli.FileHandler.level = FINE ...
and also gives examples of setting additional logging levels:
# For example, set the com.xyz.foo logger to only log SEVERE
Richard Fearn Nov 07 '10 at 19:29 2010-11-07 19:29
source share