@bizvu/logger
v1.0.1
Published
Uniform logging with winston
Readme
Logger
Uniform logging with Winston
Install
npm i @bizvu/loggerUsage
const logger = require('@bizvu/logger')(__filename)
logger.error(string)
logger.warn(string)
logger.info(string)
logger.http(string)
logger.verbose(string)
logger.debug(string)
logger.silly(string)Configuration
Default log level is 'info'. To change the log level, set an environment variable LOG_LEVEL with the desired level of logging.
