@bampich.ok/logs
v1.0.5
Published
provides logging via winston
Downloads
16
Readme
About
Wraps preset configuration for loggging. A singleton logger is provided. The logger's interface described below.
Install
npm install @bampich.ok/logs
Usage
const {Logger} = require('@bampich.ok/logs');
const _logger = new Logger().getInstance();
_logger.info("info message");
_logger.debug("debug message");
_logger.warn("warning message");
_logger.error("error message");
Configure
Set the value for the env variable NODE_ENV
to development
to see logs in the console.