Class AbstractRolloverStrategy
- java.lang.Object
-
- org.apache.logging.log4j.core.appender.rolling.AbstractRolloverStrategy
-
- All Implemented Interfaces:
RolloverStrategy
- Direct Known Subclasses:
DefaultRolloverStrategy
,DirectWriteRolloverStrategy
public abstract class AbstractRolloverStrategy extends java.lang.Object implements RolloverStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected static Logger
LOGGER
Allow subclasses access to the status logger without creating another instance.protected StrSubstitutor
strSubstitutor
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRolloverStrategy(StrSubstitutor strSubstitutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.SortedMap<java.lang.Integer,java.nio.file.Path>
getEligibleFiles(java.lang.String path, java.lang.String pattern)
protected java.util.SortedMap<java.lang.Integer,java.nio.file.Path>
getEligibleFiles(java.lang.String path, java.lang.String logfilePattern, boolean isAscending)
protected java.util.SortedMap<java.lang.Integer,java.nio.file.Path>
getEligibleFiles(RollingFileManager manager)
protected java.util.SortedMap<java.lang.Integer,java.nio.file.Path>
getEligibleFiles(RollingFileManager manager, boolean isAscending)
StrSubstitutor
getStrSubstitutor()
protected Action
merge(Action compressAction, java.util.List<Action> custom, boolean stopOnError)
protected int
suffixLength(java.lang.String lowFilename)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.logging.log4j.core.appender.rolling.RolloverStrategy
rollover
-
-
-
-
Field Detail
-
LOGGER
protected static final Logger LOGGER
Allow subclasses access to the status logger without creating another instance.
-
strSubstitutor
protected final StrSubstitutor strSubstitutor
-
-
Constructor Detail
-
AbstractRolloverStrategy
protected AbstractRolloverStrategy(StrSubstitutor strSubstitutor)
-
-
Method Detail
-
getStrSubstitutor
public StrSubstitutor getStrSubstitutor()
-
merge
protected Action merge(Action compressAction, java.util.List<Action> custom, boolean stopOnError)
-
suffixLength
protected int suffixLength(java.lang.String lowFilename)
-
getEligibleFiles
protected java.util.SortedMap<java.lang.Integer,java.nio.file.Path> getEligibleFiles(RollingFileManager manager)
-
getEligibleFiles
protected java.util.SortedMap<java.lang.Integer,java.nio.file.Path> getEligibleFiles(RollingFileManager manager, boolean isAscending)
-
getEligibleFiles
protected java.util.SortedMap<java.lang.Integer,java.nio.file.Path> getEligibleFiles(java.lang.String path, java.lang.String pattern)
-
getEligibleFiles
protected java.util.SortedMap<java.lang.Integer,java.nio.file.Path> getEligibleFiles(java.lang.String path, java.lang.String logfilePattern, boolean isAscending)
-
-