ch.qos.logback.classic.turbo
Class ReconfigureOnChangeFilter
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.classic.turbo.TurboFilter
ch.qos.logback.classic.turbo.ReconfigureOnChangeFilter
- All Implemented Interfaces:
- ContextAware, LifeCycle
public class ReconfigureOnChangeFilter
- extends TurboFilter
Reconfigure a LoggerContext when the configuration file changes.
- Author:
- Ceki Gulcu
| Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
DEFAULT_REFRESH_PERIOD
public static final long DEFAULT_REFRESH_PERIOD
- Scan for changes in configuration file once every minute.
- See Also:
- Constant Field Values
nextCheck
protected volatile long nextCheck
ReconfigureOnChangeFilter
public ReconfigureOnChangeFilter()
start
public void start()
- Specified by:
start in interface LifeCycle- Overrides:
start in class TurboFilter
toString
public String toString()
- Overrides:
toString in class Object
decide
public FilterReply decide(org.slf4j.Marker marker,
Logger logger,
Level level,
String format,
Object[] params,
Throwable t)
- Description copied from class:
TurboFilter
- Make a decision based on the multiple parameters passed as arguments.
The returned value should be one of
FilterReply.DENY,
FilterReply.NEUTRAL, or FilterReply.ACCEPT.
- Specified by:
decide in class TurboFilter
- Returns:
changeDetected
protected boolean changeDetected(long now)
getRefreshPeriod
public long getRefreshPeriod()
setRefreshPeriod
public void setRefreshPeriod(long refreshPeriod)
Copyright © 2005-2013 QOS.ch. All Rights Reserved.