/slog

Go package slog provides alternative syslog client API

Primary LanguageGoApache License 2.0Apache-2.0

slog

GoLang package slog provides alternative syslog client API. An internal syslog writer used to send messages to a syslog service with options to tune it.

slog is not an officially supported Google product.

Example

	// ...

        if f, err := slog.ParseFacility(syslogFacility); err != nil {
                slog.Err(err)
                os.Exit(exTempFail)
        } else {
                slog.Init(slog.WithFacility(f))
        }

	// ...

        slog.Info("Job ID: ", jobId)
        slog.Info("Message-Id: ", mime.GetHeader("Message-Id"))

	// ...