Nov 21st, 2008, 02:24 PM
Dynamically changing logging level?
I deploy an application to servers using an EAR file. Most all of the documentation for changing the logging level involves modifying the XML, which in my case is a lengthy redeploy via EAR, which also restarts the server.
So, without changing the XML configuration files, how do you change the logging level?
Nov 21st, 2008, 06:08 PM
My best guess at the moment is:
for each (log in LogManager.getCurrentLoggers())
Will try that out on monday.
Nov 22nd, 2008, 02:53 AM
How does the question relate to spring? You should check documentation of the logging framework you're using
Nov 24th, 2008, 09:01 AM
Apologies; it's setup through applicationContext.xml in Spring, and can't be autorefreshed using the config setting, as that spawns a thread that never quite dies.
Originally Posted by denis.zhdanov
That said, since it was setup in Spring, I was hoping for some Spring-centric way of doing it. Sorry for the extraneous post!
Nov 24th, 2008, 09:05 AM
Tags for this Thread