color-output

1.0.3 • Public • Published

color-output.js

A colorized formatter for your NodeJS applications.

Demo

Installation

 
npm install color-output
 

Log levels

  • info
  • error
  • warn
  • log
  • verbose

Usage

This library takes into account the log level you are setting. By default only log and error statements will be sown. If you want to show more output (verbose & debug) you can specify this as such:

var output = require("color-output");
output.setVerboseLevel("verbose");
output.verbose("Test");
 

Logging to the console

var output = require("color-output");
output.log("A regular log message");
output.error("An error message");
output.warn("A warning");
output.verbose("A verbose message");

/color-output/

    Package Sidebar

    Install

    npm i color-output

    Weekly Downloads

    2

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • legovaer