Logback API
Version 0.9.8

ch.qos.logback.core.rolling
Interface TriggeringPolicy

All Superinterfaces:
LifeCycle
All Known Implementing Classes:
SizeBasedTriggeringPolicy, TimeBasedRollingPolicy, TriggeringPolicyBase

public interface TriggeringPolicy
extends 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
 boolean isTriggeringEvent(File activeFile, Object event)
          Should roll-over be triggered at this time?
 
Methods inherited from interface ch.qos.logback.core.spi.LifeCycle
isStarted, start, stop
 

Method Detail

isTriggeringEvent

boolean isTriggeringEvent(File activeFile,
                          Object event)
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.

Logback API
Version 0.9.8

Copyright © 2005-2008 QOS.ch. All Rights Reserved.