B - the builder typepublic static class Log4j1SyslogLayout.Builder<B extends Log4j1SyslogLayout.Builder<B>> extends AbstractStringLayout.Builder<B> implements Builder<Log4j1SyslogLayout>
The main arguments are
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Log4j1SyslogLayout |
build() |
Facility |
getFacility() |
Layout<? extends Serializable> |
getMessageLayout() |
boolean |
isFacilityPrinting() |
boolean |
isHeader() |
B |
setFacility(Facility facility) |
B |
setFacilityPrinting(boolean facilityPrinting) |
B |
setHeader(boolean header) |
B |
setMessageLayout(Layout<? extends Serializable> messageLayout) |
getCharset, getFooterSerializer, getHeaderSerializer, setCharset, setFooterSerializer, setHeaderSerializerasBuilder, getConfiguration, getFooter, getHeader, setConfiguration, setFooter, setHeaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetErrorPrefix, isValidpublic Log4j1SyslogLayout build()
build in interface Builder<Log4j1SyslogLayout>public Facility getFacility()
public boolean isFacilityPrinting()
public boolean isHeader()
public Layout<? extends Serializable> getMessageLayout()
public B setFacilityPrinting(boolean facilityPrinting)
public B setHeader(boolean header)
public B setMessageLayout(Layout<? extends Serializable> messageLayout)
Copyright © 1999-2022 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.