aspose file tools*
The moose likes Java in General and the fly likes Logging Level at runtime in Logback Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Logging Level at runtime in Logback" Watch "Logging Level at runtime in Logback" New topic
Author

Logging Level at runtime in Logback

Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

Hi

I am using logback for logging in my application. I am looking to change my logging levels during runtime, instead of changing it and starting the servers again. Is there way to change my log levels dynamically ?

Regards,
Ashwin


Ashwin Sridhar
SCJP | SCWCD | OCA
Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

Hi All,

The configuration element of the logback.xml file has an attribute scan which could be set to true and this file would be scanned periodically for any changes.

Regards,
Ashwin
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Logging Level at runtime in Logback