Class FileAppender.Builder<B extends FileAppender.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.FileAppender.Builder<B>
- Type Parameters:
- B- The type to build
- All Implemented Interfaces:
- Builder<FileAppender>
- Enclosing class:
- FileAppender
public static class FileAppender.Builder<B extends FileAppender.Builder<B>>
extends AbstractOutputStreamAppender.Builder<B>
implements Builder<FileAppender>
Builds FileAppender instances.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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) withFilePermissions(String filePermissions) withLocking(boolean locking) Methods inherited from class org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.BuildergetBufferSize, isBufferedIo, isImmediateFlush, setBufferedIo, setBufferSize, setImmediateFlush, withBufferedIo, withBufferSize, withImmediateFlushMethods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender.BuildergetConfiguration, getErrorPrefix, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, setIgnoreExceptions, setLayout, setName, withConfiguration, withIgnoreExceptions, withLayout, withNameMethods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable.BuilderasBuilder, getFilter, getPropertyArray, setFilter, setPropertyArray, withFilterMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.logging.log4j.core.util.BuildergetErrorPrefix, isValid
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
buildDescription 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 interface- Builder<B extends FileAppender.Builder<B>>
- Returns:
- the configured instance.
 
- 
getAdvertiseUri
- 
getFileName
- 
isAdvertisepublic boolean isAdvertise()
- 
isAppendpublic boolean isAppend()
- 
isCreateOnDemandpublic boolean isCreateOnDemand()
- 
isLockingpublic boolean isLocking()
- 
getFilePermissions
- 
getFileOwner
- 
getFileGroup
- 
withAdvertise
- 
withAdvertiseUri
- 
withAppend
- 
withFileName
- 
withCreateOnDemand
- 
withLocking
- 
withFilePermissions
- 
withFileOwner
- 
withFileGroup
 
-