gluegun
gluegun copied to clipboard
Logging functionality
It would be great to have file logging functionality.
Winston seems popular.
Install it on as logging
on the context.
I like pino but that’s for structured logging. Which would be preferable imho. Just need to add a viewer command to humanize it.
I love the idea of structured logging. It's 2017, why are we still logging strings...
hash tag fact
👍 👍 over here. Pretty big fan of Winston since it's pretty easy to also pump those logs to other locations via their adapters (ie. mongod, elasticsearch, papertrail, etc.) but we've also used Bunyan a lot so Pino looks good, seems to combine the best of both.
Most of the log forwarding and aggregation we now do at the container level. A little bit harder for open source since you can't enforce containers and they don't really make sense here but it looks like just pumping the output through node my_badass_cli | pino -l
gives decent human readable logs.
Pushing this one out beyond 2.0.0.
I would no recommend Wiston package due to the lack of maintains. This is a good alternative https://github.com/pinojs/pino