public class TailFriendlyRollingPolicy<E> extends ch.qos.logback.core.rolling.TimeBasedRollingPolicy<E>
| Modifier and Type | Field and Description |
|---|---|
private ch.qos.logback.core.rolling.helper.Compressor |
compressor |
(package private) Future<?> |
future |
| Constructor and Description |
|---|
TailFriendlyRollingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
(package private) Future<?> |
asyncCompress(String nameOfFile2Compress,
String nameOfCompressedFile,
String innerEntryName) |
private static boolean |
isFileEmpty(String filepath)
Determine if the file at the given path is zero length.
|
void |
renameByCopying(String src,
String target)
Copies the contents of
src into target, and then
"zeroes out" src. |
(package private) Future<?> |
renamedRawAndAsyncCompress(String nameOfCompressedFile,
String innerEntryName) |
void |
rollover() |
getActiveFileName, getMaxHistory, getTimeBasedFileNamingAndTriggeringPolicy, isCleanHistoryOnStart, isTriggeringEvent, setCleanHistoryOnStart, setMaxHistory, setTimeBasedFileNamingAndTriggeringPolicy, start, stop, toStringdetermineCompressionMode, getCompressionMode, getFileNamePattern, getParentsRawFileProperty, isParentPrudent, isStarted, setFileNamePattern, setParentaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextprivate ch.qos.logback.core.rolling.helper.Compressor compressor
public TailFriendlyRollingPolicy()
public void rollover() throws ch.qos.logback.core.rolling.RolloverFailure
rollover in interface ch.qos.logback.core.rolling.RollingPolicyrollover in class ch.qos.logback.core.rolling.TimeBasedRollingPolicy<E>ch.qos.logback.core.rolling.RolloverFailureFuture<?> asyncCompress(String nameOfFile2Compress, String nameOfCompressedFile, String innerEntryName) throws ch.qos.logback.core.rolling.RolloverFailure
ch.qos.logback.core.rolling.RolloverFailureFuture<?> renamedRawAndAsyncCompress(String nameOfCompressedFile, String innerEntryName) throws ch.qos.logback.core.rolling.RolloverFailure
ch.qos.logback.core.rolling.RolloverFailurepublic void renameByCopying(String src, String target) throws ch.qos.logback.core.rolling.RolloverFailure
src into target, and then
"zeroes out" src.src - Path to the file to be copied. Cannot be null.target - Path to the destination file. Cannot be null.ch.qos.logback.core.rolling.RolloverFailure - if copying failed.private static boolean isFileEmpty(String filepath)
filepath - Path to the file to be tested. Cannot be null.true if filepath exists and is empty.