Constructor | Description |
---|---|
CountLabeler() |
Modifier and Type | Method | Description |
---|---|---|
File |
getLogFile(File baseFile,
int maxBackups) |
Returns the real log file.
|
void |
init(Configuration configuration) |
Initialize the labeler.
|
File |
roll(File file,
int maxBackups) |
Rolls existing log files and backups and returns a new log file.
|
public void init(Configuration configuration)
Labeler
public File getLogFile(File baseFile, int maxBackups)
Labeler
getLogFile
in interface Labeler
baseFile
- Defined log file by usermaxBackups
- Maximum number of backups to storepublic File roll(File file, int maxBackups) throws IOException
Labeler
roll
in interface Labeler
file
- Current log filemaxBackups
- Maximum number of backups to storeIOException
- Failed to roll log fileCopyright © 2019. All rights reserved.