Class RollingRandomAccessFileAppender.Builder<B extends RollingRandomAccessFileAppender.Builder<B>>
- java.lang.Object
-
- org.apache.logging.log4j.core.filter.AbstractFilterable.Builder<B>
-
- org.apache.logging.log4j.core.appender.AbstractAppender.Builder<B>
-
- org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.Builder<B>
-
- org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender.Builder<B>
-
- All Implemented Interfaces:
Builder<RollingRandomAccessFileAppender>
- Enclosing class:
- RollingRandomAccessFileAppender
public static class RollingRandomAccessFileAppender.Builder<B extends RollingRandomAccessFileAppender.Builder<B>> extends AbstractOutputStreamAppender.Builder<B> implements Builder<RollingRandomAccessFileAppender>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RollingRandomAccessFileAppender
build()
Builds the object after all configuration has been set.B
withAdvertise(boolean advertise)
B
withAdvertiseURI(String advertiseURI)
B
withAppend(boolean append)
B
withFileGroup(String fileGroup)
B
withFileName(String fileName)
B
withFileOwner(String fileOwner)
B
withFilePattern(String filePattern)
B
withFilePermissions(String filePermissions)
B
withPolicy(TriggeringPolicy policy)
B
withStrategy(RolloverStrategy strategy)
-
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.Builder
getBufferSize, isBufferedIo, isImmediateFlush, withBufferedIo, withBufferSize, withImmediateFlush
-
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender.Builder
getConfiguration, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, setIgnoreExceptions, setLayout, setName, withConfiguration, withIgnoreExceptions, withLayout, withName
-
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable.Builder
asBuilder, getFilter, getPropertyArray, setFilter, setPropertyArray, withFilter
-
-
-
-
Method Detail
-
build
public RollingRandomAccessFileAppender build()
Description copied from interface:Builder
Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
build
in interfaceBuilder<B extends RollingRandomAccessFileAppender.Builder<B>>
- Returns:
- the configured instance.
-
withAppend
public B withAppend(boolean append)
-
withPolicy
public B withPolicy(TriggeringPolicy policy)
-
withStrategy
public B withStrategy(RolloverStrategy strategy)
-
withAdvertise
public B withAdvertise(boolean advertise)
-
-