0.3.2 • Published 9 years ago

yall v0.3.2

Weekly downloads
16
License
MIT
Repository
github
Last release
9 years ago

yall - yet another logging logger

build status Current Version dependency Status devDependency Status Coveralls

Console logger with colours, debugMode and format

Install

npm install yall

Example

const Logger = require('yall');

const options = {
    timestamp: 'YYYY-MM-DD-HH:mm:SSS', // format of timedate from momentjs
    format: ':level - :ts - :data', // to change appearance of message and order they appear in
    colours: false // strips colours from message
};

const logger = new Logger(options);

logger.debug('hello'); // by default debug won't print to console unless process.env.NODE_ENV is set to 'debug' or debugMode method is called like below
logger.debugMode(); // toggles debug mode on
logger.debug('hello'); // should print in Chalk yellow [DEBUG - 2015-06-01-09:02:123 - hello]
0.3.2

9 years ago

0.3.1

9 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago