- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.status.OnPrintStreamStatusListenerBase
-
- ch.qos.logback.core.status.OnFileStatusListener
-
- All Implemented Interfaces:
ContextAware,LifeCycle,StatusListener
public class OnFileStatusListener extends OnPrintStreamStatusListenerBase
-
-
Field Summary
-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description OnFileStatusListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFilename()protected PrintStreamgetPrintStream()The PrintStream used by derived classesvoidsetFilename(String filename)voidstart()Invoking the start method can cause the instance to print status messages created less than value of retrospectiveThresold.voidstop()-
Methods inherited from class ch.qos.logback.core.status.OnPrintStreamStatusListenerBase
addStatusEvent, getPrefix, getRetrospective, isResetResistant, isStarted, setPrefix, setResetResistant, setRetrospective
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Constructor Detail
-
OnFileStatusListener
public OnFileStatusListener()
-
-
Method Detail
-
start
public void start()
Description copied from class:OnPrintStreamStatusListenerBaseInvoking the start method can cause the instance to print status messages created less than value of retrospectiveThresold.- Specified by:
startin interfaceLifeCycle- Overrides:
startin classOnPrintStreamStatusListenerBase
-
stop
public void stop()
- Specified by:
stopin interfaceLifeCycle- Overrides:
stopin classOnPrintStreamStatusListenerBase
-
getFilename
public String getFilename()
-
setFilename
public void setFilename(String filename)
-
getPrintStream
protected PrintStream getPrintStream()
Description copied from class:OnPrintStreamStatusListenerBaseThe PrintStream used by derived classes- Specified by:
getPrintStreamin classOnPrintStreamStatusListenerBase- Returns:
-
-