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 Constructor Description Builder()
-
Method Summary
-
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.Builder
getBufferSize, isBufferedIo, isImmediateFlush, setBufferedIo, setBufferSize, setImmediateFlush, withBufferedIo, withBufferSize, withImmediateFlush
-
Methods 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, withName
-
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable.Builder
asBuilder, getFilter, getPropertyArray, setFilter, setPropertyArray, withFilter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
-
-
-
Method Detail
-
build
public RollingFileAppender 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
public String getAdvertiseUri()
-
getFileName
public String getFileName()
-
isAdvertise
public boolean isAdvertise()
-
isAppend
public boolean isAppend()
-
isCreateOnDemand
public boolean isCreateOnDemand()
-
isLocking
public boolean isLocking()
-
getFilePermissions
public String getFilePermissions()
-
getFileOwner
public String getFileOwner()
-
getFileGroup
public String getFileGroup()
-
setAdvertise
public B setAdvertise(boolean advertise)
- Since:
- 2.26.0
-
setAppend
public B setAppend(boolean append)
- Since:
- 2.26.0
-
setCreateOnDemand
public B setCreateOnDemand(boolean createOnDemand)
- Since:
- 2.26.0
-
setLocking
public B setLocking(boolean locking)
- Since:
- 2.26.0
-
withAdvertise
@Deprecated public B withAdvertise(boolean advertise)
Deprecated.since 2.26.0 usesetAdvertise(boolean).
-
withAdvertiseUri
@Deprecated public B withAdvertiseUri(String advertiseUri)
Deprecated.since 2.26.0 usesetAdvertiseUri(String).
-
withAppend
@Deprecated public B withAppend(boolean append)
Deprecated.since 2.26.0 usesetAppend(boolean).
-
withFileName
@Deprecated public B withFileName(String fileName)
Deprecated.since 2.26.0 usesetFileName(String).
-
withCreateOnDemand
@Deprecated public B withCreateOnDemand(boolean createOnDemand)
Deprecated.since 2.26.0 usesetCreateOnDemand(boolean).
-
withLocking
@Deprecated public B withLocking(boolean locking)
Deprecated.since 2.26.0 usesetLocking(boolean).
-
getFilePattern
public String getFilePattern()
-
getPolicy
public TriggeringPolicy getPolicy()
-
getStrategy
public RolloverStrategy getStrategy()
-
setPolicy
public B setPolicy(TriggeringPolicy policy)
- Since:
- 2.26.0
-
setStrategy
public B setStrategy(RolloverStrategy strategy)
- Since:
- 2.26.0
-
withFilePattern
@Deprecated public B withFilePattern(String filePattern)
Deprecated.since 2.26.0 usesetFilePattern(String).
-
withPolicy
@Deprecated public B withPolicy(TriggeringPolicy policy)
Deprecated.since 2.26.0 usesetPolicy(TriggeringPolicy).
-
withStrategy
@Deprecated public B withStrategy(RolloverStrategy strategy)
Deprecated.since 2.26.0 usesetStrategy(RolloverStrategy).
-
withFilePermissions
@Deprecated public B withFilePermissions(String filePermissions)
Deprecated.since 2.26.0 usesetFilePermissions(String).
-
withFileOwner
@Deprecated public B withFileOwner(String fileOwner)
Deprecated.since 2.26.0 usesetFileOwner(String).
-
withFileGroup
@Deprecated public B withFileGroup(String fileGroup)
Deprecated.since 2.26.0 usesetFileGroup(String).
-
-