Meteor Logging
Simple logging wrapper of the ostrio:logger packages.
Installation
Add the package to your project:
meteor add xerdi:logging
Usage
The interface is the same as of the ostrio:logger
's interface.
1import log from 'meteor/xerdi:logging'; 2// OR 3import {log} from 'meteor/xerdi:logging'; 4 5function launchMissile(dir) { 6 log.info(`Launching missile in direction ${dir}`); 7 try { 8 // The code 9 } catch(err) { 10 log.error('Failed to launch missile', err); 11 } 12}