code: func SwitchLoggingtoSyslog() error {
  	log.StandardLogger().SetHooks(make(log.LevelHooks))
  	hook, err := logrusSyslog.NewSyslogHook("", "", syslog.LOG_WARNING, "")
  	if err != nil {
  		// syslog is not available
  		log.SetOutput(os.Stderr)
  		return trace.Wrap(err)
  	}
  	log.AddHook(hook)
  	// ... and disable stderr:
  	log.SetOutput(ioutil.Discard)
  	return nil
  }
docs: // SwitchLoggingtoSyslog tells the logger to send the output to syslog. This
  // code is behind a build flag because Windows does not support syslog.