Package ch.qos.logback.core.rolling
Class SizeBasedTriggeringPolicy<E>
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.rolling.TriggeringPolicyBase<E>
-
- ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy<E>
-
- All Implemented Interfaces:
TriggeringPolicy<E>
,ContextAware
,LifeCycle
@Deprecated(since="2022-01-27") public class SizeBasedTriggeringPolicy<E> extends TriggeringPolicyBase<E>
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.SizeBasedTriggeringPolicy looks at size of the file being currently written to. If it grows bigger than the specified size, the FileAppender using the SizeBasedTriggeringPolicy rolls the file and creates a new one. For more information about this policy, please refer to the online manual at http://logback.qos.ch/manual/appenders.html#SizeBasedTriggeringPolicy
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_MAX_FILE_SIZE
Deprecated.The default maximum file size.static java.lang.String
SEE_SIZE_FORMAT
Deprecated.
-
Constructor Summary
Constructors Constructor Description SizeBasedTriggeringPolicy()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
isTriggeringEvent(java.io.File activeFile, E event)
Deprecated.Should roll-over be triggered at this time?void
setMaxFileSize(FileSize aMaxFileSize)
Deprecated.-
Methods inherited from class ch.qos.logback.core.rolling.TriggeringPolicyBase
isStarted, start, stop
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
-
-
-
Field Detail
-
SEE_SIZE_FORMAT
public static final java.lang.String SEE_SIZE_FORMAT
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_MAX_FILE_SIZE
public static final long DEFAULT_MAX_FILE_SIZE
Deprecated.The default maximum file size.- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
setMaxFileSize
public void setMaxFileSize(FileSize aMaxFileSize)
Deprecated.
-
-