Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 586 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 586 Bytes

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.

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);
    }
}