Logy|Docs

Syslog handler

Send records to syslog-compatible infrastructure

Use the syslog handler when the deployment environment expects records to be sent through syslog.

main.go
err := logy.LoadConfig(&logy.Config{
	Handlers: logy.Handlers{"syslog"},
	Syslog: &logy.SyslogConfig{
		Enabled: true,
		Level:   logy.LevelInfo,
	},
})
if err != nil {
	panic(err)
}

Syslog output is useful when infrastructure already centralizes records through syslog-compatible tooling.