nodejs-log

0.0.2 • Public • Published

nodejs-log

Very Simple Colorful Console Logging

Install

  npm install nodejs-log

Examples:

var Logger = require('../logger.js');
 
// Show Level warn, error or info
Logger.debugLevel = 'info';
 
// Result: [info] This is my Message!
Logger.warn('This is my Message!');
 
// Result: [error] [Test] This is my Message!
Logger.error('This is my Message!', 'Test');
 
// Result: [info] This is my Message!
Logger.info('This is my Message!');
 
// Result: [debug] [Test] This is my Message!
Logger.debug('This is my Message!', 'Test');

The MIT License (MIT)

Readme

Keywords

Package Sidebar

Install

npm i nodejs-log

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • pkuebler