Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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).

Constructor Summary
`LoggingConfigurationResetter(org.apache.log4j.Logger logger, org.apache.log4j.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(org.apache.log4j.Logger logger,
                                        org.apache.log4j.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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright � 2008-2010 The Apache Software Foundation. All Rights Reserved.