1.0.5 • Published 3 months ago

simple-colourised-logger v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

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

1.0.5

3 months ago

1.0.4

3 months ago

1.0.3

3 months ago

1.0.2

3 months ago

1.0.1

3 months ago

1.0.0

3 months ago