Class FileSizeRotationPolicy

  • All Implemented Interfaces:
    Serializable, FileRotationPolicy

    public class FileSizeRotationPolicy
    extends Object
    implements FileRotationPolicy
    File rotation policy that will rotate files when a certain file size is reached.

    For example:

         // rotate when files reach 5MB
         FileSizeRotationPolicy policy =
              new FileSizeRotationPolicy(5.0, Units.MB);
     
    See Also:
    Serialized Form
    • Constructor Detail

      • FileSizeRotationPolicy

        protected FileSizeRotationPolicy​(long maxBytes)