Class FileRotationWorker


  • public class FileRotationWorker
    extends Object
    Archives and expires old files based on file name patterns. Contains activeLogFilenameFormatter and archiveFilenameFormatter with describes the format for the filenames for the current active logfile and archived logfiles respectively.

    Assumes that each day of logging for the active logfile will yield a unique archived logfile. If either FilenameFormatter contains variables from MDC or Marker, both should contain the same parameter set, or unique archived files cannot be created.

    Assumes that nextExecution() should happen each at midnight according to Configuration.getLocale()