Skip to content

hori-ryota/zaperr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zaperr

CircleCI Coverage Status GoDoc License: MIT

Error wrapper for go.uber.org/zap

Usage

err = zaperr.Wrap(err, "failed to execute something",
    zap.Int("foo", 1),
    zap.String("bar", "baz"),
)

logger.Info("example", zaperr.ToField(err))

// Output:
// {"level":"info","msg":"example","error":{"foo":1,"bar":"baz","error":"failed to execute something: error","errorVerbose":"omitted..."}}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages