Skip to content
zlog output to send errors to Sentry
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.markdown
go.mod
go.sum
zlog_sentry.go

README.markdown

GoDoc

Output for zlog to send errors to Sentry.

Usage:

if sentryDSN != "" {
    zlog.Config.Outputs = append(zlog.Config.Outputs,
        zlog_sentry.Report(sentryDSN, version))
}

sentryDSN is a Sentry DSN URL. The version is your application version (use an empty string if you don't want to use it).

You can’t perform that action at this time.