3 ms·
For people interested in this, there's a great presentation, The Hunt For a Logger Interface[0]. It describes how approaches to structured logging evolved over
by cube2222 6y ago
For people interested in this, there's a great presentation, The Hunt For a Logger Interface[0].
It describes how approaches to structured logging evolved over the years. I especially like the idea of using closures as logging context values, which get evaluated every time they're printed, it often greatly simplifies contextual logging.
[0]: https://go-talks.appspot.com/github.com/ChrisHines/talks/structured-logging/structured-logging.slide#1 https://go-talks.appspot.com/github.com/ChrisHines/talks/str...