7 ms·
This looks interesting - I'll take a closer look. You might want to check out the logrus package - which I'm using and pretty happy with. https://github.com/si
by yourabi 12y ago
This looks interesting - I'll take a closer look.
You might want to check out the logrus package - which I'm using and pretty happy with. https://github.com/sirupsen/logrus https://github.com/sirupsen/logrus
Logrus lets you add structured k,v fields so you do have to mess around with fmt and also has hooks to support things like sending logs to syslog or remote exception handling services.
- pbnjay 12y agoThat's pretty interesting too, I'm going to play with it. Thanks! I recently stumbled across the standard expvar package[1] which lets me debug memory usage and annotated metrics. Similar concept from a different angle I guess. 1. http://golang.org/pkg/expvar/ http://golang.org/pkg/expvar/
- deleted 12y ago[deleted]