B
- The type to buildpublic static class FileAppender.Builder<B extends FileAppender.Builder<B>> extends AbstractOutputStreamAppender.Builder<B> implements Builder<FileAppender>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FileAppender |
build()
Builds the object after all configuration has been set.
|
String |
getAdvertiseUri() |
String |
getFileName() |
boolean |
isAdvertise() |
boolean |
isAppend() |
boolean |
isCreateOnDemand() |
boolean |
isLocking() |
B |
withAdvertise(boolean advertise) |
B |
withAdvertiseUri(String advertiseUri) |
B |
withAppend(boolean append) |
B |
withCreateOnDemand(boolean createOnDemand) |
B |
withFileName(String fileName) |
B |
withLocking(boolean locking) |
getBufferSize, isBufferedIo, isImmediateFlush, withBufferedIo, withBufferSize, withImmediateFlush
getConfiguration, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, withConfiguration, withIgnoreExceptions, withLayout, withName
asBuilder, getFilter, withFilter
public FileAppender build()
Builder
build
in interface Builder<FileAppender>
public String getAdvertiseUri()
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 withCreateOnDemand(boolean createOnDemand)
public B withLocking(boolean locking)
Copyright © 1999-2017. 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.