Skip to content
/ slog Public

Go package slog provides alternative syslog client API

License

Notifications You must be signed in to change notification settings

badrpc/slog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"))

	// ...

About

Go package slog provides alternative syslog client API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages