Interface TriggeringPolicy
-
- All Known Implementing Classes:
AbstractTriggeringPolicy,CompositeTriggeringPolicy,CronTriggeringPolicy,NoOpTriggeringPolicy,OnStartupTriggeringPolicy,SizeBasedTriggeringPolicy,TimeBasedTriggeringPolicy
public interface TriggeringPolicyATriggeringPolicycontrols the conditions under which rollover occurs. Such conditions include time of day, file size, an external event, the log request or a combination thereof.- See Also:
AbstractTriggeringPolicy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinitialize(RollingFileManager manager)Initializes this triggering policy.booleanisTriggeringEvent(LogEvent logEvent)Determines if a rollover may be appropriate at this time.
-
-
-
Method Detail
-
initialize
void initialize(RollingFileManager manager)
Initializes this triggering policy.- Parameters:
manager- The RollingFileManager.
-
isTriggeringEvent
boolean isTriggeringEvent(LogEvent logEvent)
Determines if a rollover may be appropriate at this time. If true is returned, RolloverPolicy.rollover will be called but it can determine that a rollover is not warranted.- Parameters:
logEvent- A reference to the current log event.- Returns:
- true if a rollover should occur.
-
-