1.0.3 • Published 6 years ago

color-output v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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");