Top Fields Constructors Methods
ch.qos.logback.core.rolling

public Class DefaultTimeBasedFileNamingAndTriggeringPolicy<E>

extends TimeBasedFileNamingAndTriggeringPolicyBase<E>
Class Inheritance
Annotations
@NoAutoStart
Imports
java.io.File, java.time.Instant, java.util.Date, ch.qos.logback.core.joran.spi.NoAutoStart, ch.qos.logback.core.rolling.helper.TimeBasedArchiveRemover

Author
Ceki Gülcü

Field Summary

Inherited from ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase:
archiveRemoverartificialCurrentTimeatomicNextCheckdateInCurrentPeriodelapsedPeriodsFileNameerrorFreercstartedtbrp

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
isTriggeringEvent(File
A reference to the currently active log file.
activeFile
,
final E
A reference to the current event.
event
)

Implements ch.qos.logback.core.rolling.TriggeringPolicy.isTriggeringEvent.

Should roll-over be triggered at this time?
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase:
computeNextCheckgetArchiveRemovergetCurrentPeriodsFileNameWithoutCompressionSuffixgetCurrentTimegetElapsedPeriodsFileNameisErrorFreeisStartedsetCurrentTimesetDateInCurrentPeriodsetTimeBasedRollingPolicystopwithErrors

Constructor Detail

DefaultTimeBasedFileNamingAndTriggeringPolicyback to summary
public DefaultTimeBasedFileNamingAndTriggeringPolicy()

Method Detail

isTriggeringEventback to summary
public boolean isTriggeringEvent(File activeFile, final E event)

Implements ch.qos.logback.core.rolling.TriggeringPolicy.isTriggeringEvent.

Doc from ch.qos.logback.core.rolling.TriggeringPolicy.isTriggeringEvent.

Should roll-over be triggered at this time?

Parameters
activeFile:File

A reference to the currently active log file.

event:E

A reference to the current event.

Returns:boolean

true if a roll-over should occur.

startback to summary
public void start()

Overrides ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase.start.

Implements ch.qos.logback.core.spi.LifeCycle.start.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override