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 LoggerLOGGERAllow subclasses access to the status logger without creating another instance.static java.util.regex.PatternPATTERN_COUNTERprotected StrSubstitutorstrSubstitutor
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractRolloverStrategy(StrSubstitutor strSubstitutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated 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)Deprecated.protected java.util.SortedMap<java.lang.Integer,java.nio.file.Path>getEligibleFiles(java.lang.String currentFile, 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)StrSubstitutorgetStrSubstitutor()protected Actionmerge(Action compressAction, java.util.List<Action> custom, boolean stopOnError)protected intsuffixLength(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.
-
PATTERN_COUNTER
public static final java.util.regex.Pattern PATTERN_COUNTER
-
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
@Deprecated protected java.util.SortedMap<java.lang.Integer,java.nio.file.Path> getEligibleFiles(java.lang.String path, java.lang.String logfilePattern, boolean isAscending)Deprecated.
-
getEligibleFiles
protected java.util.SortedMap<java.lang.Integer,java.nio.file.Path> getEligibleFiles(java.lang.String currentFile, java.lang.String path, java.lang.String logfilePattern, boolean isAscending)
-
-