jblog
v0.0.5
Published
Jagmesh's beautiful logger module for Node.js
Downloads
26
Readme
jblog
Simple Node.js colorful logger for pretty-looking console messages
Installation
npm i jblog
Import
import Logger from 'jblog'
or
const Logger = require('jblog')
Usage
import Logger from 'jblog'
const logger = new Logger({
scopes: ['TTS', 'SERVICE']
})
const someData = 'Hello world!'
logger.info('Well, something happened', someData)
logger.warn('There is a chance that you haven\'t heard of the high elves')