Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dynamically set log level using java.util.logging

807580Jan 13 2010 — edited Jan 16 2010
Hi,
In my project, we are using java.util.logging. All classes are loading logger at the server start up. These all are intializing through configuration file.
Now i want to change level of log on request basis. Means there is a page where changing log level requested. On this request i need to set the log level to requested level.
To do this i have tried to use below methods. But nothing working.
- Changing log level in configuration file and calling LogManage.readConfigruation()
- Changing log level to package using logManager
- changing log level thru handlers.

In above first method is not at all working.
Second method, showing changing level at only that class but not in any other classes.
Please advise me how to do this? Thanks for your help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 13 2010
Added on Jan 13 2010
5 comments
455 views