public interface TriggeringPolicy
TriggeringPolicycontrols the conditions under which rollover occurs. Such conditions include time of day, file size, an external event, the log request or a combination thereof.
|Modifier and Type||Method and Description|
Initializes this triggering policy.
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.
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.