Package ch.qos.logback.core.rolling
Class SizeAndTimeBasedFNATP<E>
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase<E>
-
- ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP<E>
-
- All Implemented Interfaces:
TimeBasedFileNamingAndTriggeringPolicy<E>
,TriggeringPolicy<E>
,ContextAware
,LifeCycle
@Deprecated(since="2022-01-27") public class SizeAndTimeBasedFNATP<E> extends TimeBasedFileNamingAndTriggeringPolicyBase<E>
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description SizeAndTimeBasedFNATP()
Deprecated.SizeAndTimeBasedFNATP(ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP.Usage usage)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getCurrentPeriodsFileNameWithoutCompressionSuffix()
Deprecated.Return the current periods file name without the compression suffix.boolean
isTriggeringEvent(java.io.File activeFile, E event)
Deprecated.Should roll-over be triggered at this time?void
setMaxFileSize(FileSize aMaxFileSize)
Deprecated.void
start()
Deprecated.-
Methods inherited from class ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase
getArchiveRemover, getCurrentTime, getElapsedPeriodsFileName, isStarted, setCurrentTime, setDateInCurrentPeriod, setTimeBasedRollingPolicy, stop
-
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, toString, 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.- Specified by:
start
in interfaceLifeCycle
- Overrides:
start
in classTimeBasedFileNamingAndTriggeringPolicyBase<E>
-
isTriggeringEvent
public boolean isTriggeringEvent(java.io.File activeFile, E event)
Deprecated.Description copied from interface:TriggeringPolicy
Should roll-over be triggered at this time?- Parameters:
activeFile
- A reference to the currently active log file.event
- A reference to the currently event.- Returns:
- true if a roll-over should occur.
-
getCurrentPeriodsFileNameWithoutCompressionSuffix
public java.lang.String getCurrentPeriodsFileNameWithoutCompressionSuffix()
Deprecated.Description copied from interface:TimeBasedFileNamingAndTriggeringPolicy
Return the current periods file name without the compression suffix. This value is equivalent to the active file name.- Specified by:
getCurrentPeriodsFileNameWithoutCompressionSuffix
in interfaceTimeBasedFileNamingAndTriggeringPolicy<E>
- Overrides:
getCurrentPeriodsFileNameWithoutCompressionSuffix
in classTimeBasedFileNamingAndTriggeringPolicyBase<E>
- Returns:
- current period's file name (without compression suffix)
-
setMaxFileSize
public void setMaxFileSize(FileSize aMaxFileSize)
Deprecated.
-
-