@jp6rt/cli-logger
v1.0.9
Published
A simple logger utility.
Downloads
2
Readme
cli-logger
A simple logger utility.
usage
const clilogger = require('@jp6rt/cli-logger')
/**
* @param label - Labels your log (default=Log)
* @param enabled - Switch for all the log (default=false)
*/
const logger = clilogger('TestLabel', !0)
logger.silent('{0}:{1}', 'foo', 'bar')
logger.primary('{0}:{1}', 'foo', 'bar')
logger.accent('{0}:{1}', 'foo', 'bar')
logger.error('{0}:{1}', 'foo', 'bar')
license
MIT