gluegun icon indicating copy to clipboard operation
gluegun copied to clipboard

Logging functionality

Open skellock opened this issue 7 years ago • 6 comments

It would be great to have file logging functionality.

Winston seems popular.

Install it on as logging on the context.

skellock avatar Mar 05 '17 19:03 skellock

I like pino but that’s for structured logging. Which would be preferable imho. Just need to add a viewer command to humanize it.

skellock avatar Oct 01 '17 10:10 skellock

I love the idea of structured logging. It's 2017, why are we still logging strings...

jamonholmgren avatar Oct 04 '17 21:10 jamonholmgren

hash tag fact

skellock avatar Oct 04 '17 22:10 skellock

👍 👍 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.

ekryski avatar Nov 05 '17 20:11 ekryski

Pushing this one out beyond 2.0.0.

jamonholmgren avatar Dec 13 '17 00:12 jamonholmgren

I would no recommend Wiston package due to the lack of maintains. This is a good alternative https://github.com/pinojs/pino

yordis avatar Mar 05 '19 13:03 yordis