public
  void setSyslogHost(final String syslogHost) {
    final Writer syslogWriter;
    if (syslogHost.startsWith("tcp:")) {
        syslogWriter = new TCPSyslogWriter(syslogHost);
    } else {
        syslogWriter = new SyslogWriter(syslogHost);
    }
    this.sqw = new SyslogQuietWriter(syslogWriter,
                                     syslogFacility, errorHandler);
    //this.stp = new SyslogTracerPrintWriter(sqw);
    this.syslogHost = syslogHost;
  }
public void setSyslogHost ( final String syslogHost ) { final Writer syslogWriter ; if ( syslogHost . startsWith ( "tcp:" ) ) { syslogWriter = new TCPSyslogWriter ( syslogHost ) ; } else { syslogWriter = new SyslogWriter ( syslogHost ) ; } this . sqw = new SyslogQuietWriter ( syslogWriter , syslogFacility , errorHandler ) ; this . syslogHost = syslogHost ; }
The <b>SyslogHost</b> 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.
Use "tcp:" prefix to specify that this appender must use TCP transport
instead of UDP (note: this is not the same as RFC 3165, but a non-standart
mode of operation when regular syslog messages are sent over TCP instead
of UDP).

<b>WARNING</b> If the SyslogHost is not set, then this appender
will fail.