|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TriggeringPolicy
A 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.
| Method Summary | |
|---|---|
boolean |
isTriggeringEvent(org.apache.log4j.Appender appender,
org.apache.log4j.spi.LoggingEvent event,
java.lang.String filename,
long fileLength)
Determines if a rollover may be appropriate at this time. |
| Methods inherited from interface org.apache.log4j.spi.OptionHandler |
|---|
activateOptions |
| Method Detail |
|---|
boolean isTriggeringEvent(org.apache.log4j.Appender appender,
org.apache.log4j.spi.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.
|
||||||||||
| 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.