DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Martin Joly
Martin Joly

Posted on

Stop panic-ing ! Start debugging 10x faster with static analysis

#go

I'd like to introduce Errlog, a hackable error handling package that uses stack trace and static analysis to determine which func call is responsible for your error.

Wrap the error you want to debug with

err := failingFunc()
if errlog.Debug(err) {
    return err
}

Output:

Output

Pluggable to any logger in-place.

Try errlog.

Top comments (2)

Collapse
 
dannypsnl profile image
ζž—ε­η―†

The tool is so excellent! Thanks for sharing.

Collapse
 
snwfdhmp profile image
Martin Joly

Thanks a lot for your feedback !

πŸ” If you came here from Google, why not take a look at some of our top posts?