modulepackage
0.0.0-20190625144231-a717472eb845
Repository: https://github.com/ak-army/xlog-sentry.git
Documentation: pkg.go.dev
# README
XLog to Sentry Output
xlog-sentry is an xlog to Sentry output for github.com/rs/xlog.
Install
go get github.com/trong/xlog-sentry
Usage
o := xlogsentry.NewSentryOutput(YOUR_DSN, nil)
o.Timeout = 300 * time.Millisecond
o.StacktraceConfiguration.Enable = true
l := xlog.New(xlog.Config{
Output: o,
Fields: xlog.F{
"role": "my-service",
},
})
l.Errorf("What: %s", "happens?")
Licenses
All source code is licensed under the MIT License.
# Functions
No description provided by the author
No description provided by the author
# Structs
Output is a xlog to sentry output.
StackTraceConfiguration allows for configuring stacktraces.