DailyPolicy, SizePolicy, StartupPolicypublic interface Policy
RollingFileWriter for triggering rollover events.| Modifier and Type | Method | Description |
|---|---|---|
boolean |
continueCurrentFile(byte[] entry) |
Checks if a log entry can be appended to the current log file.
|
boolean |
continueExistingFile(java.lang.String path) |
Checks if an existing log file can be continued.
|
void |
reset() |
Resets this policy as a new log file has been started.
|
boolean continueExistingFile(java.lang.String path)
path - Path to log filetrue if existing log file can be continued, false if a new log file should be createdboolean continueCurrentFile(byte[] entry)
entry - Log entrytrue if log entry can be appended to the current log file, false if a new log file should
be createdvoid reset()
Copyright © 2019. All rights reserved.