Skip to content

trong/xlog-sentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

XLog to Sentry Output

godoc

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.

About

XLog to Sentry Output

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages