Class RollingFileAppender.Builder<B extends RollingFileAppender.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.RollingFileAppender.Builder<B>
- Type Parameters:
B- The type to build
- All Implemented Interfaces:
Builder<RollingFileAppender>
- Enclosing class:
- RollingFileAppender
public static class RollingFileAppender.Builder<B extends RollingFileAppender.Builder<B>>
extends AbstractOutputStreamAppender.Builder<B>
implements Builder<RollingFileAppender>
Builds FileAppender instances.
- Since:
- 2.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the object after all configuration has been set.booleanbooleanisAppend()booleanbooleanwithAdvertise(boolean advertise) withAdvertiseUri(String advertiseUri) withAppend(boolean append) withCreateOnDemand(boolean createOnDemand) withFileGroup(String fileGroup) withFileName(String fileName) withFileOwner(String fileOwner) withFilePattern(String filePattern) withFilePermissions(String filePermissions) withLocking(boolean locking) withPolicy(TriggeringPolicy policy) withStrategy(RolloverStrategy strategy) Methods inherited from class org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.Builder
getBufferSize, isBufferedIo, isImmediateFlush, setBufferedIo, setBufferSize, setImmediateFlush, withBufferedIo, withBufferSize, withImmediateFlushMethods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender.Builder
getConfiguration, getErrorPrefix, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, setIgnoreExceptions, setLayout, setName, withConfiguration, withIgnoreExceptions, withLayout, withNameMethods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable.Builder
asBuilder, getFilter, getPropertyArray, setFilter, setPropertyArray, withFilterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from interface:BuilderBuilds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
buildin interfaceBuilder<B extends RollingFileAppender.Builder<B>>- Returns:
- the configured instance.
-
getAdvertiseUri
-
getFileName
-
isAdvertise
public boolean isAdvertise() -
isAppend
public boolean isAppend() -
isCreateOnDemand
public boolean isCreateOnDemand() -
isLocking
public boolean isLocking() -
getFilePermissions
-
getFileOwner
-
getFileGroup
-
withAdvertise
-
withAdvertiseUri
-
withAppend
-
withFileName
-
withCreateOnDemand
-
withLocking
-
getFilePattern
-
getPolicy
-
getStrategy
-
withFilePattern
-
withPolicy
-
withStrategy
-
withFilePermissions
-
withFileOwner
-
withFileGroup
-