Log-Levels in Meteor/Javascript?


Hi guys,

I got a really nice total-newbie question for you:

I’d like to use log-levels (DEBUG/INFO/WARNING/ERROR/CRITICAL) within my code
PLUS I’d like to be able to configure custom error-handlers for those levels (for example send ALL ‘critical’ messages to an email).

Is there a best-practise for this in meteor?


There are a few good Meteor packages based on established libraries, that come to mind:

Although I haven’t used it personally, Winston has a lot of “transports” which as far as I know can be used for sending emails.