ak19logger-npm
v1.3.4
Published
Colorized logs
Downloads
9
Maintainers
Readme
Enhanced CLI Logging
Usage
const { LogError, LogWarning, LogSuccess } = require('ak19logger-npm') // import classes
const logError = new LogError() // ERROR Logger Object
const logWarning = new LogWarning() // WARNING Logger Object
const logSuccess = new LogSuccess() // SUCCESS Logger Object
//ERROR
logError.error(new Error('Something bad happened'))
//WARNING
logWarning.warning('This is a custom warning')
//Success
logSuccess.success('Done')