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
public Builder()
public SyslogLayout build()
Builder
build
in interface Builder<SyslogLayout>
public Facility getFacility()
public boolean isIncludeNewLine()
public String getEscapeNL()
public B setFacility(Facility facility)
public B setIncludeNewLine(boolean includeNewLine)
public B setEscapeNL(String escapeNL)
Copyright © 1999-2020 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.