Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

JFKingsley/LumberJack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An all-in-one logging system for Node.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published