B
- the builder typepublic static class SyslogLayout.Builder<B extends SyslogLayout.Builder<B>> extends AbstractStringLayout.Builder<B> implements Builder<SyslogLayout>
The main arguments are
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
escapeNL |
private Facility |
facility |
private boolean |
includeNewLine |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SyslogLayout |
build()
Builds the object after all configuration has been set.
|
java.lang.String |
getEscapeNL() |
Facility |
getFacility() |
boolean |
isIncludeNewLine() |
B |
setEscapeNL(java.lang.String escapeNL) |
B |
setFacility(Facility facility) |
B |
setIncludeNewLine(boolean includeNewLine) |
getCharset, getFooterSerializer, getHeaderSerializer, setCharset, setFooterSerializer, setHeaderSerializer
asBuilder, getConfiguration, getFooter, getHeader, setConfiguration, setFooter, setHeader
@PluginBuilderAttribute private Facility facility
@PluginBuilderAttribute(value="newLine") private boolean includeNewLine
@PluginBuilderAttribute(value="newLineEscape") private java.lang.String escapeNL
public SyslogLayout build()
Builder
build
in interface Builder<SyslogLayout>
public Facility getFacility()
public boolean isIncludeNewLine()
public java.lang.String getEscapeNL()
public B setIncludeNewLine(boolean includeNewLine)
public B setEscapeNL(java.lang.String escapeNL)