3 ms·
The first project I published in Go almost 3 years ago, was a similar port of the python logger. While today I find this "I want to log like I do in python" app
by dvirsky 11y ago
The first project I published in Go almost 3 years ago, was a similar port of the python logger. While today I find this "I want to log like I do in python" approach a bit silly, IMO the Go standard logging package is still lacking, and I'm still using my python-ish port, not because it's similar to python, but because it has things like formatting, context printing and most importantly logging levels.
- levigross 11y agoI am not trying to do things in the "Python way". I am trying to bring some of the same flexibility I get when using the Python requests library to Go.
- cat9 11y agoWhat's your take on Logrus? It seems like it would cover your major concerns, and it's widely recommended. https://github.com/Sirupsen/logrus https://github.com/Sirupsen/logrus
- dvirsky 11y agoit's nice, very similar to my API sans the structured messages thing.