simple-colourised-logger

1.0.5 • Public • Published

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: output

Package Sidebar

Install

npm i simple-colourised-logger

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

3.78 kB

Total Files

4

Last publish

Collaborators

  • grapeday