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 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.static Pattern
PATTERN_COUNTER
protected StrSubstitutor
strSubstitutor
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRolloverStrategy(StrSubstitutor strSubstitutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected SortedMap<Integer,Path>
getEligibleFiles(String path, String pattern)
protected SortedMap<Integer,Path>
getEligibleFiles(String path, String logfilePattern, boolean isAscending)
Deprecated.protected SortedMap<Integer,Path>
getEligibleFiles(String currentFile, String path, String logfilePattern, boolean isAscending)
protected SortedMap<Integer,Path>
getEligibleFiles(RollingFileManager manager)
protected SortedMap<Integer,Path>
getEligibleFiles(RollingFileManager manager, boolean isAscending)
StrSubstitutor
getStrSubstitutor()
protected Action
merge(Action compressAction, List<Action> custom, boolean stopOnError)
protected int
suffixLength(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 Pattern PATTERN_COUNTER
-
strSubstitutor
protected final StrSubstitutor strSubstitutor
-
-
Constructor Detail
-
AbstractRolloverStrategy
protected AbstractRolloverStrategy(StrSubstitutor strSubstitutor)
-
-
Method Detail
-
getStrSubstitutor
public StrSubstitutor getStrSubstitutor()
-
suffixLength
protected int suffixLength(String lowFilename)
-
getEligibleFiles
protected SortedMap<Integer,Path> getEligibleFiles(RollingFileManager manager)
-
getEligibleFiles
protected SortedMap<Integer,Path> getEligibleFiles(RollingFileManager manager, boolean isAscending)
-
getEligibleFiles
@Deprecated protected SortedMap<Integer,Path> getEligibleFiles(String path, String logfilePattern, boolean isAscending)
Deprecated.
-
-