Interface ILogsCleanupJobUnit

All Superinterfaces:
IJobUnit

public interface ILogsCleanupJobUnit extends IJobUnit
This job will remove log files which are too old.

Since:
3.3.1
Version:
$Revision$ $Date$
Author:
Stepan Roh
  • Field Details

  • Method Details

    • setMaxFileAgeDays

      void setMaxFileAgeDays(int age)
      Required job parameter: max age of log files (in days).
      Parameters:
      age - age in days
    • setFilePatterns

      void setFilePatterns(String... filePatterns)
      Required job parameter: log file patterns.

      File pattern has the form: _FOLDER_|_PATTERN_ (e.g. C:/Polarion/data/workspace/.metadata|log4j-[^2]*2). _FOLDER_ is where to find log files, _PATTERN_ is file name prefix regular expression. File name prefix is matched against all files in the folder, those who matched the same prefix are treated together - from this set all files which are older than setMaxFileAgeDays(int) are removed with the exception of the newest one which is always kept.

      Parameters:
      filePatterns - file patterns