org.apache.cocoon.monitoring.reconfiguration
Class LoggingConfigurationResetter

java.lang.Object
  extended by 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).


Constructor Summary
LoggingConfigurationResetter(ch.qos.logback.classic.Logger logger, ch.qos.logback.classic.Level oldLevel, String timeout)
           
 
Method Summary
 void start()
          Starts thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 changed
oldLevel - logging level value that should be set after timeout
timeout - value of timeout. Is should match regular expression: ^[0-9.]+[dhm]?$ where d means day, h hours and m minutes
Method Detail

start

public void start()
Starts thread



Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.