public final class CompositeTriggeringPolicy extends java.lang.Object implements TriggeringPolicy, UnrecognizedElementHandler
Constructor and Description |
---|
CompositeTriggeringPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
activateOptions() |
void |
addTriggeringPolicy(TriggeringPolicy policy)
Add triggering policy
|
boolean |
isTriggeringEvent(Appender appender,
LoggingEvent event,
java.lang.String file,
long fileLength)
Determines if a rollover may be appropriate at this time.
|
boolean |
parseUnrecognizedElement(org.w3c.dom.Element element,
java.util.Properties props) |
public boolean isTriggeringEvent(Appender appender, LoggingEvent event, java.lang.String file, long fileLength)
TriggeringPolicy
isTriggeringEvent
in interface TriggeringPolicy
appender
- A reference to the appender.event
- A reference to the currently event.file
- The filename for the currently active log file.fileLength
- Length of the file in bytes.public void addTriggeringPolicy(TriggeringPolicy policy)
policy
- public void activateOptions()
activateOptions
in interface OptionHandler
public boolean parseUnrecognizedElement(org.w3c.dom.Element element, java.util.Properties props) throws java.lang.Exception
parseUnrecognizedElement
in interface UnrecognizedElementHandler
java.lang.Exception
Copyright © 2006-2019 OPS4J - Open Participation Software for Java. All Rights Reserved.