|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.log4j.rolling.CompositeTriggeringPolicy
public final class CompositeTriggeringPolicy
CompositeTriggeringPolicy determines if rolling should be triggered by evaluating the current event against a set of triggering policies. TriggeringPolicy results are OR'd together - if any of the triggering policies report rolling should occur, a rolling event will be triggered.
| Constructor Summary | |
|---|---|
CompositeTriggeringPolicy()
|
|
| Method Summary | |
|---|---|
void |
activateOptions()
|
void |
addTriggeringPolicy(TriggeringPolicy policy)
Add triggering policy |
boolean |
isTriggeringEvent(org.apache.log4j.Appender appender,
org.apache.log4j.spi.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)
Called to inform a configured object when an unrecognized child element is encountered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeTriggeringPolicy()
| Method Detail |
|---|
public boolean isTriggeringEvent(org.apache.log4j.Appender appender,
org.apache.log4j.spi.LoggingEvent event,
java.lang.String file,
long fileLength)
TriggeringPolicy
isTriggeringEvent in interface TriggeringPolicyappender - 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(org.w3c.dom.Element element,
java.util.Properties props)
throws java.lang.Exception
UnrecognizedElementHandler
parseUnrecognizedElement in interface UnrecognizedElementHandlerelement - element, may not be null.props - properties in force, may be null.
java.lang.Exception - throw an exception to prevent activation
of the configured object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.