public class TailFriendlyRollingPolicy<E> extends ch.qos.logback.core.rolling.TimeBasedRollingPolicy<E>
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.concurrent.Future<?> |
future |
| Constructor and Description |
|---|
TailFriendlyRollingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
(package private) java.util.concurrent.Future<?> |
asyncCompress(java.lang.String uncompressedPath,
java.lang.String compressedPath,
java.lang.String innerEntryName) |
private static boolean |
isFileEmpty(java.lang.String filepath)
Determine if the file at the given path is zero length.
|
void |
renameByCopying(java.lang.String src,
java.lang.String target)
Copies the contents of
src into target, and then
"zeroes out" src. |
(package private) java.util.concurrent.Future<?> |
renamedRawAndAsyncCompress(java.lang.String nameOfCompressedFile,
java.lang.String innerEntryName) |
void |
rollover() |
getActiveFileName, getMaxHistory, getTimeBasedFileNamingAndTriggeringPolicy, isCleanHistoryOnStart, isTriggeringEvent, isUnboundedTotalSizeCap, setCleanHistoryOnStart, setMaxHistory, setTimeBasedFileNamingAndTriggeringPolicy, setTotalSizeCap, start, stop, toStringdetermineCompressionMode, getCompressionMode, getFileNamePattern, getParentsRawFileProperty, isParentPrudent, isStarted, setFileNamePattern, setParentaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextjava.util.concurrent.Future<?> future
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.RolloverFailurejava.util.concurrent.Future<?> asyncCompress(java.lang.String uncompressedPath, java.lang.String compressedPath, java.lang.String innerEntryName) throws ch.qos.logback.core.rolling.RolloverFailure
ch.qos.logback.core.rolling.RolloverFailurejava.util.concurrent.Future<?> renamedRawAndAsyncCompress(java.lang.String nameOfCompressedFile, java.lang.String innerEntryName) throws ch.qos.logback.core.rolling.RolloverFailure
ch.qos.logback.core.rolling.RolloverFailurepublic void renameByCopying(java.lang.String src, java.lang.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(java.lang.String filepath)
filepath - Path to the file to be tested. Cannot be null.true if filepath exists and is empty.