Skip to content

papo84/plogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

plogger

Description

node log package to log message to console with colors based on the message type

Installation

$ npm install plogger

Usage

global.logger = require('plogger').log;

logger('debug', logLevel.DEBUG)
logger('info', logLevel.INFO)
logger('warning', logLevel.WARNING)
logger('error', logLevel.ERROR)
logger('fatal', logLevel.FATAL)

var initTest = function() {
  try {
    throw Exception('bad call');
  } catch (e) {
    logger(e);
  } finally {
    logger('done!');
  }
}
initTest();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published