Interface RotationPolicy

All Known Implementing Classes:
FixedTimeRotationPolicy, SizeBasedRotationPolicy, TimeLimitRotationPolicy

public interface RotationPolicy
Interface to decide if a file should be rotated or not.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This method indicates if the log file should be rotated or not.
  • Method Details

    • shouldRotateFile

      boolean shouldRotateFile(RotatableObject file)
      This method indicates if the log file should be rotated or not.
      Parameters:
      file - The file to be checked.
      Returns:
      True if the log file should be rotated, false otherwise.