yall - yet another logging logger
Console logger with colours, debugMode and format
Install
npm install yall
Example
const Logger = ; 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 = options; logger; // by default debug won't print to console unless process.env.NODE_ENV is set to 'debug' or debugMode method is called like belowlogger; // toggles debug mode onlogger; // should print in Chalk yellow [DEBUG - 2015-06-01-09:02:123 - hello]