public interface BackupPolicy
NullBackupPolicy is used, but can be replaced by a DeleteBackupPolicy to keep a backup of files, but delete old ones. Implementations can
derive their configuration properties from the
LogManager manager = LogManager.getLogManager();
String cname = this.getClass.getName();
Integer threshold = Integer.valueOf(manager.getProperty(cname+".threshold"));
...
LogManager directly.
For example, retrieve a threshold property:
NullBackupPolicy,
DeleteBackupPolicy,
RollingFileHandler| Modifier and Type | Method and Description |
|---|---|
void |
track(File file)
Track a newly created file.
|
void track(File file)
file - A newly created file.Copyright © GigaSpaces.