News for hackers. Stuff that matters.
Re:Tagged Logging in Go by radimm on Thursday February 12, 2015 @10:37AM (#9039196)
similar structured logger https://github.com/Sirupsen/logrus
Re:Tagged Logging in Go by rakoo on Thursday February 12, 2015 @11:40AM (#9039656)
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)
Re:Tagged Logging in Go by pquerna on Thursday February 12, 2015 @11:03AM (#9039365)
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.

Re:Tagged Logging in Go by girishso on Friday February 13, 2015 @03:42AM (#9043460)
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!

Re:Tagged Logging in Go by wtf_is_up on Thursday February 12, 2015 @11:10AM (#9039400)
The hooks are nice too. I'm using the Slack hook to push notifications. Works like a charm.
Re:Tagged Logging in Go by kiyoto on Thursday February 12, 2015 @01:52PM (#9040556)
Interesting. This can be used with Fluentd as well with the JSONFormatter (https://www.fluentd.org)