▲ 13 ▼ Zap: Fast, structured, leveled logging in Go logging github.com godoc.org goreportcard.com posted by daenney 2902 days ago ▲ kenny 2901 days ago ▼ On this topic, an interesting thread from bketelsen on twitter about a common logging interface for Go: https://twitter.com/bketelsen/status/820768241849077760 Contributing ▲ kenny 2902 days ago ▼ Thanks for this post, it looks like an interesting approach - verbose but avoids the problem of reflecting to get types of logged items, or assuming that they will be of a certain type, by requiring you to log using functions for each item. Contributing ▲ iris-go 2902 days ago ▼ We made use of it on a middleware too, it's really one of the best loggers for Go, I recommend this for anyone. Contributing Register to comment or vote on this story
On this topic, an interesting thread from bketelsen on twitter about a common logging interface for Go:
https://twitter.com/bketelsen/status/820768241849077760
Thanks for this post, it looks like an interesting approach - verbose but avoids the problem of reflecting to get types of logged items, or assuming that they will be of a certain type, by requiring you to log using functions for each item.
We made use of it on a middleware too, it's really one of the best loggers for Go, I recommend this for anyone.