I just started writing my first project in GoLang. I want to send logs to syslog(/var/log/syslog) file.
I am using zerolog(github.com/rs/zerolog) package to write logs. This is my how I am logging currently:
log.Error().Str("Event_name", Event_name).Msg("Invalid event")
It is printing logs to terminal but not to syslog file. Can someone give example or explain how to do that? Thanks in advance.