RollingPolicy is responsible for performing the rolling over
of the active log file. The RollingPolicy is also responsible
for providing the active log file, that is the live file where
logging output will be directed.
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public CompressionMode | |
| public void | |
| public void | setParent(FileAppender<?> appender)
This method allows RollingPolicy implementations to be aware of their containing appender. |
| getActiveFileName | back to summary |
|---|---|
| public String getActiveFileName() Get the name of the active log file.
With implementations such as On other implementations, this method might return the FileAppender's file property. | |
| getCompressionMode | back to summary |
|---|---|
| public CompressionMode getCompressionMode() The compression mode for this policy. | |
| rollover | back to summary |
|---|---|
| public void rollover() throws RolloverFailure Rolls over log files according to implementation policy.
This method is invoked by
| |
| setParent | back to summary |
|---|---|
| public void setParent(FileAppender<?> appender) This method allows RollingPolicy implementations to be aware of their containing appender. | |