title: logging to syslog file with Zerolog (GoLang)
body: <p>I just started writing my first project in GoLang. I want to send logs to syslog(<em>/var/log/syslog</em>) file.</p>
  <p>I am using <strong>zerolog</strong>(<em>github.com/rs/zerolog</em>) package to write logs.
  This is my how I am logging currently:</p>
  <pre><code>log.Error().Str(&quot;Event_name&quot;, Event_name).Msg(&quot;Invalid event&quot;)
  </code></pre>
  <p>It is printing logs to terminal but not to syslog file. Can someone give example or explain how to do that? Thanks in advance.</p>