Inspired from this guide: https://meteorhacks.com/logging-support-for-meteor 1. Sign up loggly 2. add 'winston' and 'winston-loggly' to package.json 3. code Don't forget Meteor.npmRequire is only available on server side 4. LOGGER.info will output on console and send events to loggly
# Setup logging in server/config.js
@LOGGER= Meteor.npmRequire 'winston'
handleExceptions:true,# handle exception in logger
ReactiveVars don't have global names, like the "foo" in Session.get("foo"). Instead, they may be created and used locally, for example attached to a template instance, as in: this.foo.get(). // 'this' is the template instance
ReactiveVars are not automatically migrated across hot code pushes, whereas Session state is.
ReactiveVars can hold any value, while Session variables are limited to JSON or EJSON.