code: func New(network string, raddr string, tag string, tlsConfig *tls.Config) (*Syslog, error) {
  	var err error
  	s := &Syslog{
  		colors:          defaultColors,
  		displayColor:    false,
  		timestampFormat: log.DefaultTimeFormat,
  		formatFunc:      defaultFormatFunc,
  	}
  
  	// if non-TLS
  	if tlsConfig == nil {
  		s.writer, err = syslog.Dial(network, raddr, syslog.LOG_INFO, tag)
  	} else {
  		s.writer, err = syslog.DialWithTLSConfig(network, raddr, syslog.LOG_INFO, tag, tlsConfig)
  	}
  
  	if err != nil {
  		return nil, err
  	}
  	return s, nil
  }
docs: // New returns a new instance of the syslog logger
  // example: syslog.New("udp", "localhost:514", syslog.LOG_DEBUG, "", nil)
  // NOTE: tlsConfig param is optional and only applies when networks in "tcp+tls"
  // see TestSyslogTLS func tion int syslog_test.go for an example usage of tlsConfig parameter