public abstract class AbstractRolloverStrategy extends Object implements RolloverStrategy
Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
LOGGER
Allow subclasses access to the status logger without creating another instance.
|
static Pattern |
PATTERN_COUNTER |
protected StrSubstitutor |
strSubstitutor |
Modifier | Constructor and Description |
---|---|
protected |
AbstractRolloverStrategy(StrSubstitutor strSubstitutor) |
Modifier and Type | Method and Description |
---|---|
protected SortedMap<Integer,Path> |
getEligibleFiles(RollingFileManager manager) |
protected SortedMap<Integer,Path> |
getEligibleFiles(RollingFileManager manager,
boolean isAscending) |
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) |
StrSubstitutor |
getStrSubstitutor() |
protected Action |
merge(Action compressAction,
List<Action> custom,
boolean stopOnError) |
protected int |
suffixLength(String lowFilename) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
rollover
protected static final org.apache.logging.log4j.Logger LOGGER
public static final Pattern PATTERN_COUNTER
protected final StrSubstitutor strSubstitutor
protected AbstractRolloverStrategy(StrSubstitutor strSubstitutor)
public StrSubstitutor getStrSubstitutor()
protected int suffixLength(String lowFilename)
protected SortedMap<Integer,Path> getEligibleFiles(RollingFileManager manager)
protected SortedMap<Integer,Path> getEligibleFiles(RollingFileManager manager, boolean isAscending)
@Deprecated protected SortedMap<Integer,Path> getEligibleFiles(String path, String logfilePattern, boolean isAscending)
Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.