Class PathSortByModificationTime

java.lang.Object
org.apache.logging.log4j.core.appender.rolling.action.PathSortByModificationTime
All Implemented Interfaces:
Serializable, Comparator<PathWithAttributes>, PathSorter

@Plugin(name="SortByModificationTime", category="Core", printObject=true) public class PathSortByModificationTime extends Object implements PathSorter, Serializable
PathSorter that sorts path by their LastModified attribute.
See Also:
  • Constructor Details

    • PathSortByModificationTime

      public PathSortByModificationTime(boolean recentFirst)
      Constructs a new SortByModificationTime sorter.
      Parameters:
      recentFirst - if true, most recently modified paths should come first
  • Method Details