Simple logging wrapper of the ostrio:logger packages.
Add the package to your project:
meteor add xerdi:logging
The interface is the same as of the ostrio:logger
's interface.
import log from 'meteor/xerdi:logging';
// OR
import {log} from 'meteor/xerdi:logging';
function launchMissile(dir) {
log.info(`Launching missile in direction ${dir}`);
try {
// The code
} catch(err) {
log.error('Failed to launch missile', err);
}
}