consolevc

ConsoleVC ========= Install ------- ```bash npm install consolevc ``` Introduction ------------ Here is an example on how to use it: ```javascript var consolevc = require('consolevc'); consolevc.config.level = 0; consolevc.config.colors = true;

npm install consolevc
4 downloads in the last week
7 downloads in the last month

ConsoleVC

Install

npm install consolevc

Introduction

Here is an example on how to use it:

var consolevc = require('consolevc');
consolevc.config.level = 0;
consolevc.config.colors = true;

consolevc.l({'Wahou': "it's a very useful simple log"});
consolevc.d({'Wahou': "it's a very useful debug log", 'Beautiful':  "in blue!"});
consolevc.w({'Wahou': "it's a very useful warning log", 'Beautiful':  "in yellow!"});
consolevc.e({'Wahou': "it's a very useful error log", 'Beautiful':  "in red!"});

Config

The configuration is simple (set to production environment by default):

  • level : (default: 3) Choose what to log
    • 0 : log everything (log, debug, warning and error)
    • 1 : log debug, warning and error
    • 2 : log warning and error
    • 3 : log error
  • colors : (default: false) Color or not the logs (don't color logs in a production environment)
npm loves you