Monday, 3 February 2020

Best options for logging in Node apps?

So I'm running a Node app on a Digital Ocean Ubuntu droplet with PM2 and I'm looking for the best way to store and view logs from it.I'm after a similar experience I'd get if I deployed to a cloud function running on GCP, outputting console.log / info / error and consuming through StackDriver. ....which gives me a nice web UI where I can filter log messages & drill down into JSON entries etc.So far, the closest I've got is Winston, outputting 100% JSON and consuming it with pino-pretty or json-log-viewer on the command line. ....which just feels a bit clunky.What are some better (open source / free) options? :-)

Submitted February 03, 2020 at 07:57PM by Badgergeddon

No comments:

Post a Comment