Re:Tagged Logging in Go
by radimm on Thursday February 12, 2015 @10:37AM
(#9039196)
similar structured logger https://github.com/Sirupsen/logrus
[ Parent
| on HN ]
It seems to me FogCreek's tagged logging is a simpler version of logging than what logrus provides and what should actually always be the case: you don't log strings, you log structs with multiple fields and possibly multiple values for each field. It's much more versatile and seems to be enough for most if not all use cases, as logstash shows (really, at some points it starts being much easier to just log a JSON dict and stop fiddling with fancy regexps for analytics)
I've used `logrus` in a couple projects and been pretty happy with it.
Easy to get rolling, easy to make chained loggers, and can do JSON in production or pretty colors when in dev environment.
Ditto for me.
I have created a desktop app and use 'logrus' for logging locally and have created a 'hook' to send logs to the server. Works pretty neat!
The hooks are nice too. I'm using the Slack hook to push notifications. Works like a charm.
Interesting. This can be used with Fluentd as well with the JSONFormatter (https://www.fluentd.org)