Hacker News new | ask | show | jobs
by yourabi 4274 days 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

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.

1 comments

That'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/