Meaningless Drivel is fun!*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Logging Level at runtime in Logback
 
Similar Threads
Using java.util.logging.Logger and passing the assignment
Issue in logging
J2EE and Logging
SLF4J, Logback configuration on JBoss 5.1
log rotate for Windows