@digital-wafa/logger
v1.0.0
Published
a logger utility that only logs in the dev and test envirement
Downloads
108
Readme
@digital-wafa/logger
it's a sample library to log to the console only when your programs are running in dev or test environment
Installation
npm i @digital-wafa/logger
Usage
import Logger from '@digital-wafa/logger'
Logger.log(Logger.Level.INFO, "an info log")
Logger.log(Logger.Level.WARN, "a warning log")
Logger.log(Logger.Level.ERROR, "an error log")
Logger.log(Logger.Level.LOG, "a normal log")