public interface TriggeringPolicy extends OptionHandler
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.Modifier and Type | Method and Description |
---|---|
boolean |
isTriggeringEvent(Appender appender,
LoggingEvent event,
java.lang.String filename,
long fileLength)
Determines if a rollover may be appropriate at this time.
|
activateOptions
boolean isTriggeringEvent(Appender appender, LoggingEvent event, java.lang.String filename, long fileLength)
appender
- A reference to the appender.event
- A reference to the currently event.filename
- The filename for the currently active log file.fileLength
- Length of the file in bytes.Copyright © 2006-2019 OPS4J - Open Participation Software for Java. All Rights Reserved.