Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i log something in meteor?

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

or even node-loggly

like image 751
Steeve Cannon Avatar asked Apr 15 '12 22:04

Steeve Cannon


2 Answers

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.

like image 73
Dan Dascalescu Avatar answered Oct 21 '22 05:10

Dan Dascalescu


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

like image 7
Arunoda Susiripala Avatar answered Oct 21 '22 06:10

Arunoda Susiripala