org.apache.cocoon.monitoring.reconfiguration
Class LoggingConfigurationResetter
java.lang.Object
org.apache.cocoon.monitoring.reconfiguration.LoggingConfigurationResetter
public class LoggingConfigurationResetter
- extends Object
This class starts a new thread that restores the logging level for a particular class or package
(after a defined amount of time).
Method Summary |
void |
start()
Starts thread |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingConfigurationResetter
public LoggingConfigurationResetter(ch.qos.logback.classic.Logger logger,
ch.qos.logback.classic.Level oldLevel,
String timeout)
- Parameters:
logger
- instance of logger that logging level should changedoldLevel
- logging level value that should be set after timeouttimeout
- value of timeout. Is should match regular expression: ^[0-9.]+[dhm]?$
where d
means day, h
hours and m
minutes
start
public void start()
- Starts thread
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.