simple-colourised-logger
v1.0.5
Published
A simple nodejs console logging package.
Downloads
17
Readme
Simple Colourised Logger
Extremely simple coloured logging using RGB values and saverity levels.
Deployment
To deploy this project run
npm i simple-colourised-logger
Usage/Examples
Import:
import { addColor, addLogLevel, log } from 'simple-colourised-logger'
addColor("red", 255, 0, 0)
addLogLevel("warning", null, "red")
log("warning", "Look, the background color can also be changed :)");
Require:
var log = require('simple-colourised-logger');
log.addColor("red", 255, 0, 0)
log.addLogLevel("warning", null, "red")
log.log("warning", "Look, the background color can also be changed :)");
Result: