FileSizeBackupStrategy2 instead, since 1.9.0.
A FileSizeBackupStrategy2 allows you to define the max number of backup files@Deprecated public class FileSizeBackupStrategy extends java.lang.Object implements BackupStrategy
| Constructor and Description |
|---|
FileSizeBackupStrategy(long maxSize)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldBackup(java.io.File file)
Deprecated.
Whether we should backup a specified log file.
|
public FileSizeBackupStrategy(long maxSize)
maxSize - the max size the file can reachpublic boolean shouldBackup(java.io.File file)
BackupStrategyshouldBackup in interface BackupStrategyfile - the log file