B
- the builder typepublic static class SyslogLayout.Builder<B extends SyslogLayout.Builder<B>> extends AbstractStringLayout.Builder<B> implements Builder<SyslogLayout>
The main arguments are
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SyslogLayout |
build()
Builds the object after all configuration has been set.
|
String |
getEscapeNL() |
Facility |
getFacility() |
boolean |
isIncludeNewLine() |
B |
setEscapeNL(String escapeNL) |
B |
setFacility(Facility facility) |
B |
setIncludeNewLine(boolean includeNewLine) |
getCharset, getFooterSerializer, getHeaderSerializer, setCharset, setFooterSerializer, setHeaderSerializer
asBuilder, getConfiguration, getFooter, getHeader, setConfiguration, setFooter, setHeader
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorPrefix, isValid
public SyslogLayout build()
Builder
build
in interface Builder<SyslogLayout>
public Facility getFacility()
public boolean isIncludeNewLine()
public String getEscapeNL()
public B setIncludeNewLine(boolean includeNewLine)
Copyright © 1999-2023 The 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.