apex / log

Structured logging package for Go.
MIT License
1.36k stars 110 forks source link

Stack traces #83

Open mikesun opened 4 years ago

mikesun commented 4 years ago

https://github.com/apex/log/commit/89ce6f11b2dc2a7603f3429d7b3076c526980841 added the filename and line numbers of where a pkg/errors error stacktrace was taken if there was one attached.

For me, it would be nice when doing local debugging to have an option to log all of the stack traces in a chain of wrapped pkg/errors error. Any thoughts on that?

tj commented 4 years ago

Hmm I think we should actually remove that code now that the stdlib has its own stuff (the %w placeholder for fmt.Errorf)`