Uses of Interface
org.apache.logging.log4j.core.appender.rolling.RolloverStrategy
Package
Description
Log4j 2 Appenders.
Rolling File Appender and support classes.
-
Uses of RolloverStrategy in org.apache.logging.log4j.core.appender
Modifier and TypeMethodDescriptionstatic <B extends RollingFileAppender.Builder<B>>
RollingFileAppenderRollingFileAppender.createAppender
(String fileName, String filePattern, String append, String name, String bufferedIO, String bufferSizeStr, String immediateFlush, TriggeringPolicy policy, RolloverStrategy strategy, Layout<? extends Serializable> layout, Filter filter, String ignore, String advertise, String advertiseUri, Configuration config) Deprecated.static <B extends RollingRandomAccessFileAppender.Builder<B>>
RollingRandomAccessFileAppenderRollingRandomAccessFileAppender.createAppender
(String fileName, String filePattern, String append, String name, String immediateFlush, String bufferSizeStr, TriggeringPolicy policy, RolloverStrategy strategy, Layout<? extends Serializable> layout, Filter filter, String ignoreExceptions, String advertise, String advertiseURI, Configuration configuration) Deprecated.RollingFileAppender.Builder.withStrategy
(RolloverStrategy strategy) RollingRandomAccessFileAppender.Builder.withStrategy
(RolloverStrategy strategy) -
Uses of RolloverStrategy in org.apache.logging.log4j.core.appender.rolling
Modifier and TypeClassDescriptionclass
class
When rolling over,DefaultRolloverStrategy
renames files according to an algorithm as described below.class
When rolling over,DirectWriteRolloverStrategy
writes directly to the file as resolved by the file pattern.Modifier and TypeMethodDescriptionRollingFileManager.getRolloverStrategy()
Returns the rollover strategy.Modifier and TypeMethodDescriptionstatic RollingFileManager
RollingFileManager.getFileManager
(String fileName, String pattern, boolean append, boolean bufferedIO, TriggeringPolicy policy, RolloverStrategy strategy, String advertiseURI, Layout<? extends Serializable> layout, int bufferSize, boolean immediateFlush, boolean createOnDemand, String filePermissions, String fileOwner, String fileGroup, Configuration configuration) Returns a RollingFileManager.RollingRandomAccessFileManager.getRollingRandomAccessFileManager
(String fileName, String filePattern, boolean isAppend, boolean immediateFlush, int bufferSize, TriggeringPolicy policy, RolloverStrategy strategy, String advertiseURI, Layout<? extends Serializable> layout, String filePermissions, String fileOwner, String fileGroup, Configuration configuration) void
RollingFileManager.setRolloverStrategy
(RolloverStrategy rolloverStrategy) ModifierConstructorDescriptionprotected
RollingFileManager
(String fileName, String pattern, OutputStream os, boolean append, long size, long initialTime, TriggeringPolicy triggeringPolicy, RolloverStrategy rolloverStrategy, String advertiseURI, Layout<? extends Serializable> layout, boolean writeHeader, ByteBuffer buffer) Deprecated.protected
RollingFileManager
(String fileName, String pattern, OutputStream os, boolean append, long size, long initialTime, TriggeringPolicy triggeringPolicy, RolloverStrategy rolloverStrategy, String advertiseURI, Layout<? extends Serializable> layout, int bufferSize, boolean writeHeader) Deprecated.protected
RollingFileManager
(LoggerContext loggerContext, String fileName, String pattern, OutputStream os, boolean append, boolean createOnDemand, long size, long initialTime, TriggeringPolicy triggeringPolicy, RolloverStrategy rolloverStrategy, String advertiseURI, Layout<? extends Serializable> layout, boolean writeHeader, ByteBuffer buffer) Deprecated.protected
RollingFileManager
(LoggerContext loggerContext, String fileName, String pattern, OutputStream os, boolean append, boolean createOnDemand, long size, long initialTime, TriggeringPolicy triggeringPolicy, RolloverStrategy rolloverStrategy, String advertiseURI, Layout<? extends Serializable> layout, String filePermissions, String fileOwner, String fileGroup, boolean writeHeader, ByteBuffer buffer) RollingRandomAccessFileManager
(LoggerContext loggerContext, RandomAccessFile raf, String fileName, String pattern, OutputStream os, boolean append, boolean immediateFlush, int bufferSize, long size, long time, TriggeringPolicy policy, RolloverStrategy strategy, String advertiseURI, Layout<? extends Serializable> layout, boolean writeHeader) Deprecated.RollingRandomAccessFileManager
(LoggerContext loggerContext, RandomAccessFile raf, String fileName, String pattern, OutputStream os, boolean append, boolean immediateFlush, int bufferSize, long size, long initialTime, TriggeringPolicy policy, RolloverStrategy strategy, String advertiseURI, Layout<? extends Serializable> layout, String filePermissions, String fileOwner, String fileGroup, boolean writeHeader)
RollingFileAppender.newBuilder()
.