This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
log rotate for Windows
SLF4J, Logback configuration on JBoss 5.1
J2EE and Logging
Issue in logging