- 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
@Deprecated public class ReconfigureOnChangeFilter extends TurboFilter
Deprecated.replaced byReconfigureOnChangeTaskReconfigure a LoggerContext when the configuration file changes.- Author:
- Ceki Gulcu
-
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_REFRESH_PERIODDeprecated.Scan for changes in configuration file once every minute.protected longnextCheckDeprecated.-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description ReconfigureOnChangeFilter()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleanchangeDetected(long now)Deprecated.FilterReplydecide(org.slf4j.Marker marker, Logger logger, Level level, String format, Object[] params, Throwable t)Deprecated.Make a decision based on the multiple parameters passed as arguments.longgetRefreshPeriod()Deprecated.voidsetRefreshPeriod(long refreshPeriod)Deprecated.voidstart()Deprecated.StringtoString()Deprecated.-
Methods inherited from class ch.qos.logback.classic.turbo.TurboFilter
decide, getName, isStarted, setName, stop
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Field Detail
-
DEFAULT_REFRESH_PERIOD
public static final long DEFAULT_REFRESH_PERIOD
Deprecated.Scan for changes in configuration file once every minute.- See Also:
- Constant Field Values
-
nextCheck
protected volatile long nextCheck
Deprecated.
-
-
Constructor Detail
-
ReconfigureOnChangeFilter
public ReconfigureOnChangeFilter()
Deprecated.
-
-
Method Detail
-
start
public void start()
Deprecated.- Specified by:
startin interfaceLifeCycle- Overrides:
startin classTurboFilter
-
decide
public FilterReply decide(org.slf4j.Marker marker, Logger logger, Level level, String format, Object[] params, Throwable t)
Deprecated.Description copied from class:TurboFilterMake a decision based on the multiple parameters passed as arguments. The returned value should be one of,FilterReply.DENY, orFilterReply.NEUTRAL.FilterReply.ACCEPT- Specified by:
decidein classTurboFilter- Returns:
-
changeDetected
protected boolean changeDetected(long now)
Deprecated.
-
getRefreshPeriod
public long getRefreshPeriod()
Deprecated.
-
setRefreshPeriod
public void setRefreshPeriod(long refreshPeriod)
Deprecated.
-
-