Skip to content

Dhumez-Sebastien/consoleDev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

consoleDev

Build Status Code Climate Test Coverage Dependency Status

More logs more simple!

Currently is dev!

Quick Start

Install

$ npm install consoleDev

Basic Usage

// Include consoleDev
var consoleDev = require('consoleDev');

// Erase a list logger
consoleDev.setEraseLogList([
    (sails && sails.log) ? sails.log : void 0
]);

// Set the different listener modes
consoleDev.setLogLevel('silent');
consoleDev.setLogLevel('error');
consoleDev.setLogLevel('warn');
consoleDev.setLogLevel('debug');
consoleDev.setLogLevel('info');
consoleDev.setLogLevel('verbose');
consoleDev.setLogLevel('silly');

// Show data
consoleDev.log('I\'m a log');
consoleDev.silly('I\'m a silly');
consoleDev.input('I\'m a input');
consoleDev.verbose('I\'m a verbose');
consoleDev.prompt('I\'m a prompt');
consoleDev.info('I\'m a info');
consoleDev.data('I\'m a data');
consoleDev.help('I\'m a help');
consoleDev.warn('I\'m a warn');
consoleDev.debug('I\'m a debug');
consoleDev.error('I\'m a error');

Customise

consoleDev.setParams({
            showPrefix : true,          // Show prefix before log (default to true)
            fullColorize : true,        // Colorize full string into log
            parenthesisObject : true    // Show parenthesis before/after object/array (default to true)
        });

Join in!

I'm happy to receive bug reports, fixes, documentation enhancements, and any other improvements.

RoadMap

  • Customise color

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published