Norse Polytheistic Mythology
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    lumberjackpublic

    LumberJack

    Lumberjack NPM

    LumberJack is a centralised logging system for NodeJS. It allows you to log to Winston, Sentry and many more systems (soon) from one centralised system. ### Install

    $ npm install lumberjack

    Usage

    var LumberJack = require('lumberjack');
     
    var DSN = '';
    var logFileLocation = './lumberjack.log';
    var sentry = undefined;
    var prefix = 'Lumberjack';
     
    var lumberjack = new LumberJack(DSN, sentry, {logFile: logFileLocation, prefix: prefix, timestamp: false, colors: true, ignoreLevelSentry: ['debug']});
     
    lumberjack.info('This is a info log');
     
    lumberjack.debug('This is a debug log', {withALittleExtra: 'data!'}, function(sentryID) {
        console.log(sentryID);
    });
     
    lumberjack.error('Danger, Will Robinson, Danger! This is an error log', {crashReport: 'LostInSpace'});

    And done! It's that simple.

    Config

    Name Type
    logfile String (File Path)
    timestamp Boolean
    colors Boolean
    stackTrace Boolean

    install

    npm i lumberjack

    Downloadslast 7 days

    18

    version

    1.1.1

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar