B
- the builder typeBuilder<SyslogLayout>
public static class SyslogLayout.Builder<B extends SyslogLayout.Builder<B>> extends AbstractStringLayout.Builder<B> implements Builder<SyslogLayout>
The main arguments are
Constructor | Description |
---|---|
Builder() |
Modifier and Type | Method | 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) |
asBuilder, getConfiguration, getFooter, getHeader, setConfiguration, setFooter, setHeader
getCharset, getFooterSerializer, getHeaderSerializer, setCharset, setFooterSerializer, setHeaderSerializer
public SyslogLayout build()
Builder
build
in interface Builder<B extends SyslogLayout.Builder<B>>
public Facility getFacility()
public boolean isIncludeNewLine()
public String getEscapeNL()
public B setIncludeNewLine(boolean includeNewLine)
Copyright © 1999-2018. 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.