Last Updated: February 25, 2016
·
600
· drgorb

Logging package in meteor

A fact which was not known to me until I checked what is included in the meteor-platform package is that a default Logging package is included.

A public Log function is available for the default log level info

There are 4 log levels :

debug
info
warn
error

which can be used like so:

Log.debug("my log text");
Log.warn(
    {atribute1: "attribute value", 
     attribute2: "etc..."});

There is no documentation and it is very basic but it works.

1 Response
Add your response

How can I set loglevel?

over 1 year ago ·