public final class CompositeTriggeringPolicy extends Object implements TriggeringPolicy, org.apache.log4j.xml.UnrecognizedElementHandler
Constructor and Description |
---|
CompositeTriggeringPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
activateOptions() |
void |
addTriggeringPolicy(TriggeringPolicy policy)
Add triggering policy
|
boolean |
isTriggeringEvent(org.apache.log4j.Appender appender,
org.apache.log4j.spi.LoggingEvent event,
String file,
long fileLength)
Determines if a rollover may be appropriate at this time.
|
boolean |
parseUnrecognizedElement(Element element,
Properties props) |
public boolean isTriggeringEvent(org.apache.log4j.Appender appender, org.apache.log4j.spi.LoggingEvent event, 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 org.apache.log4j.spi.OptionHandler
public boolean parseUnrecognizedElement(Element element, Properties props) throws Exception
parseUnrecognizedElement
in interface org.apache.log4j.xml.UnrecognizedElementHandler
Exception
Copyright © 2013 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.