Class FileSizeBackupStrategy
- java.lang.Object
-
- com.elvishew.xlog.printer.file.backup.FileSizeBackupStrategy
-
- All Implemented Interfaces:
BackupStrategy
@Deprecated public class FileSizeBackupStrategy extends java.lang.Object implements BackupStrategy
Deprecated.useFileSizeBackupStrategy2instead, since 1.9.0. AFileSizeBackupStrategy2allows you to define the max number of backup filesLimit the file size of a max length.
-
-
Constructor Summary
Constructors Constructor Description FileSizeBackupStrategy(long maxSize)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanshouldBackup(java.io.File file)Deprecated.Whether we should backup a specified log file.
-
-
-
Method Detail
-
shouldBackup
public boolean shouldBackup(java.io.File file)
Deprecated.Description copied from interface:BackupStrategyWhether we should backup a specified log file.- Specified by:
shouldBackupin interfaceBackupStrategy- Parameters:
file- the log file- Returns:
- true is we should backup the log file
-
-