This project has retired. For details please refer to its
Attic page.
OozieRollingPolicy (Apache Oozie Core 5.0.0-beta1 API)
- java.lang.Object
-
- org.apache.log4j.rolling.RollingPolicyBase
-
- org.apache.oozie.util.OozieRollingPolicy
-
- All Implemented Interfaces:
- org.apache.log4j.rolling.RollingPolicy, org.apache.log4j.rolling.TriggeringPolicy, org.apache.log4j.spi.OptionHandler
public class OozieRollingPolicy
extends org.apache.log4j.rolling.RollingPolicyBase
implements org.apache.log4j.rolling.TriggeringPolicy
Has the same behavior as the TimeBasedRollingPolicy. Additionally, it will delete older logs (MaxHistory determines how many
older logs are retained).
-
-
Field Summary
-
Fields inherited from class org.apache.log4j.rolling.RollingPolicyBase
activeFileName
-
Method Summary
-
Methods inherited from class org.apache.log4j.rolling.RollingPolicyBase
formatFileName, getActiveFileName, getDatePatternConverter, getFileNamePattern, getIntegerPatternConverter, parseFileNamePattern, setActiveFileName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
isTriggeringEvent
public boolean isTriggeringEvent(org.apache.log4j.Appender appender,
org.apache.log4j.spi.LoggingEvent event,
String filename,
long fileLength)
- Specified by:
isTriggeringEvent
in interface org.apache.log4j.rolling.TriggeringPolicy
Copyright © 2018 Apache Software Foundation. All rights reserved.