How do i log something in meteor?


Question

Can I use something like winston npm in the underlying .meteor/local/build/server/node_modules?

or even node-loggly

1
14
4/15/2012 10:37:51 PM

Accepted Answer

The good old Observatory has been revamped and works with Meteor 0.9+ now. Details, usage, demo app via http://observatoryjs.com

See also pince, a lightweight logger for Node and Meteor (client/server).

Another interesting logging package is trail, which has configurable transports (console, MongoDB, custom), and can centralize logs from the server and multiple clients, and display them in an admin interface, trail-monitor.

16
3/4/2015 9:24:35 PM

You can use winston (nodejs logging module) with meteor. And it does support several transports including, loggly, mongo and so many others.

See my article on how to integrate it


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon