requiresLayout

setSyslogHost

The SyslogHost option is the name of the the syslog host
where log output should go. A non-default port can be specified by
appending a colon and port number to a host name,
an IPv4 address or an IPv6 address enclosed in square brackets.
WARNING If the SyslogHost is not set, then this appender
will fail.

getFacility

setFacilityPrinting

If the FacilityPrinting option is set to true, the printed
message will include the facility name of the application. It is
false by default.

getFacilityPrinting

public boolean getFacilityPrinting()

Returns the value of the FacilityPrinting option.

getHeader

public final boolean getHeader()

If true, the appender will generate the HEADER part (that is, timestamp and host name)
of the syslog packet. Default value is false for compatibility with existing behavior,
however should be true unless there is a specific justification.

Since:

1.2.15

setHeader

public final void setHeader(boolean val)

Returns whether the appender produces the HEADER part (that is, timestamp and host name)
of the syslog packet.