Package ch.qos.logback.core.rolling
Class RollingFileAppender<E>
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.UnsynchronizedAppenderBase<E>
-
- ch.qos.logback.core.OutputStreamAppender<E>
-
- ch.qos.logback.core.FileAppender<E>
-
- ch.qos.logback.core.rolling.RollingFileAppender<E>
-
- All Implemented Interfaces:
Appender<E>,ContextAware,FilterAttachable<E>,LifeCycle
@Deprecated(since="2022-01-27") public class RollingFileAppender<E> extends FileAppender<E>
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.RollingFileAppenderextendsFileAppenderto backup the log files depending onRollingPolicyandTriggeringPolicy. For more information about this appender, please refer to the online manual at http://logback.qos.ch/manual/appenders.html#RollingFileAppender
-
-
Field Summary
-
Fields inherited from class ch.qos.logback.core.FileAppender
DEFAULT_BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description RollingFileAppender()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetFile()Deprecated.Returns the value of the File property.RollingPolicygetRollingPolicy()Deprecated.TriggeringPolicy<E>getTriggeringPolicy()Deprecated.voidrollover()Deprecated.Implemented by delegating most of the rollover work to a rolling policy.voidsetFile(java.lang.String file)Deprecated.The File property takes a string value which should be the name of the file to append to.voidsetRollingPolicy(RollingPolicy policy)Deprecated.Sets the rolling policy.voidsetTriggeringPolicy(TriggeringPolicy<E> policy)Deprecated.voidstart()Deprecated.If the value of File is notnull, thenFileAppender.openFile(java.lang.String)is called with the values of File and Append properties.voidstop()Deprecated.Stop this appender instance.-
Methods inherited from class ch.qos.logback.core.FileAppender
isAppend, isPrudent, openFile, rawFileProperty, setAppend, setBufferSize, setPrudent
-
Methods inherited from class ch.qos.logback.core.OutputStreamAppender
getEncoder, getOutputStream, isImmediateFlush, setEncoder, setImmediateFlush, setLayout, setOutputStream
-
Methods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
-
-
-
Method Detail
-
start
public void start()
Deprecated.Description copied from class:FileAppenderIf the value of File is notnull, thenFileAppender.openFile(java.lang.String)is called with the values of File and Append properties.- Specified by:
startin interfaceLifeCycle- Overrides:
startin classFileAppender<E>
-
stop
public void stop()
Deprecated.Description copied from class:OutputStreamAppenderStop this appender instance. The underlying stream or writer is also closed.Stopped appenders cannot be reused.
- Specified by:
stopin interfaceLifeCycle- Overrides:
stopin classFileAppender<E>
-
setFile
public void setFile(java.lang.String file)
Deprecated.Description copied from class:FileAppenderThe File property takes a string value which should be the name of the file to append to.- Overrides:
setFilein classFileAppender<E>
-
getFile
public java.lang.String getFile()
Deprecated.Description copied from class:FileAppenderReturns the value of the File property.This method may be overridden by derived classes.
- Overrides:
getFilein classFileAppender<E>
-
rollover
public void rollover()
Deprecated.Implemented by delegating most of the rollover work to a rolling policy.
-
getRollingPolicy
public RollingPolicy getRollingPolicy()
Deprecated.
-
getTriggeringPolicy
public TriggeringPolicy<E> getTriggeringPolicy()
Deprecated.
-
setRollingPolicy
public void setRollingPolicy(RollingPolicy policy)
Deprecated.Sets the rolling policy. In case the 'policy' argument also implementsTriggeringPolicy, then the triggering policy for this appender is automatically set to be the policy argument.- Parameters:
policy-
-
setTriggeringPolicy
public void setTriggeringPolicy(TriggeringPolicy<E> policy)
Deprecated.
-
-