Dynamically set log level using java.util.logging

Joined
Jan 14, 2010
Messages
1
Reaction score
0
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,135
Latest member
VeronaShap
Top