Console Log at NodeJS
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
LICENSE
README.md
logger.js
package.json

README.md

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)