B - This builder classpublic static class RollingFileAppender.Builder<B extends RollingFileAppender.Builder<B>> extends AbstractOutputStreamAppender.Builder<B> implements Builder<RollingFileAppender>
| Constructor and Description |
|---|
RollingFileAppender.Builder() |
| Modifier and Type | Method and Description |
|---|---|
RollingFileAppender |
build()
Builds the object after all configuration has been set.
|
String |
getAdvertiseUri() |
Configuration |
getConfiguration() |
String |
getFileName() |
String |
getFilePattern() |
TriggeringPolicy |
getPolicy() |
RolloverStrategy |
getStrategy() |
boolean |
isAdvertise() |
boolean |
isAppend() |
boolean |
isCreateOnDemand() |
boolean |
isLocking() |
B |
withAdvertise(boolean advertise) |
B |
withAdvertiseUri(String advertiseUri) |
B |
withAppend(boolean append) |
B |
withConfiguration(Configuration config) |
B |
withCreateOnDemand(boolean createOnDemand) |
B |
withFileName(String fileName) |
B |
withFilePattern(String filePattern) |
B |
withLocking(boolean locking) |
B |
withPolicy(TriggeringPolicy policy) |
B |
withStrategy(RolloverStrategy strategy) |
getBufferSize, isBufferedIo, isImmediateFlush, withBufferedIo, withBufferSize, withImmediateFlushgetLayout, getName, getOrCreateLayout, isIgnoreExceptions, withIgnoreExceptions, withLayout, withNameasBuilder, getFilter, withFilterpublic RollingFileAppender build()
Builderbuild in interface Builder<RollingFileAppender>public String getAdvertiseUri()
public Configuration getConfiguration()
public String getFileName()
public boolean isAdvertise()
public boolean isAppend()
public boolean isCreateOnDemand()
public boolean isLocking()
public B withAdvertise(boolean advertise)
public B withAppend(boolean append)
public B withConfiguration(Configuration config)
public B withCreateOnDemand(boolean createOnDemand)
public B withLocking(boolean locking)
public String getFilePattern()
public TriggeringPolicy getPolicy()
public RolloverStrategy getStrategy()
public B withPolicy(TriggeringPolicy policy)
public B withStrategy(RolloverStrategy strategy)
Copyright © 1999-2016 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.