Top Description Methods
ch.qos.logback.core.rolling

public Interface TriggeringPolicy<E>

extends LifeCycle
Known Direct Subinterfaces
ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicy
Known Direct Implementers
ch.qos.logback.core.rolling.TriggeringPolicyBase, ch.qos.logback.core.rolling.TimeBasedRollingPolicy
Imports
java.io.File, ch.qos.logback.core.spi.LifeCycle

A TriggeringPolicy controls the conditions under which roll-over occurs. Such conditions include time of day, file size, an external event, the log request or a combination thereof.
Author
Ceki Gülcü

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if a roll-over should occur.
isTriggeringEvent
(final File
A reference to the currently active log file.
activeFile
,
final E
A reference to the current event.
event
)

Should roll-over be triggered at this time?

Inherited from ch.qos.logback.core.spi.LifeCycle:
isStartedstartstop

Method Detail

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

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.