public interface TriggeringPolicy
TriggeringPolicy controls the conditions under which rollover
occurs. Such conditions include time of day, file size, an
external event, the log request or a combination thereof.AbstractTriggeringPolicy| Modifier and Type | Method and Description |
|---|---|
void |
initialize(RollingFileManager manager)
Initializes this triggering policy.
|
boolean |
isTriggeringEvent(LogEvent logEvent)
Determines if a rollover may be appropriate at this time.
|
void initialize(RollingFileManager manager)
manager - The RollingFileManager.boolean isTriggeringEvent(LogEvent logEvent)
logEvent - A reference to the current log event.