wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes I can't seem to set the log level on my package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I can Watch "I can New topic
Author

I can't seem to set the log level on my package

Mattias Ahlin
Greenhorn

Joined: May 31, 2006
Posts: 11
Hi

I have a class that uses alot of other classes. All these other classes are littered with logging on low levels.

I would like to suppress all logging by setting the default level for the ConsoleHandler to WARNING. Then I want to set the logging level to FINE on my package and only my package. Is that possible?

My logging.properties looks like this (I have verified throught testing that this is the file used by the code):



As you can see, I only use a ConsoleHandler and I'm trying to set all logging to WARNING and then set the level to FINE on my package only.

The problem is that the level WARNING seems to apply on my package to. If I lower "java.util.logging.ConsoleHandler.level" to FINE, my logs are logged to the console but if I raise it to WARNING they are not.

Any suggestions? It seems to me that this should be simple but no matter what I've tried it hasn't worked

I would be thankful for your help.

Best regards,
Mattias
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: I can't seem to set the log level on my package
 
Similar Threads
java.util.Logging configuration
java.util.Logging configuration...
NX: Logging using FileHandler
RAD6/WAS6 Logging config..
why the logging is not working ?