cliengo-winston
v1.1.8
Published
A custom configuration for Winston with path label, falsy returns and NewRelic transport.
Downloads
70
Maintainers
Readme
A custom Winston configuration with path label, falsy returns and NewRelic transport.
Installation
Tested on node-14.x, requires npm.
$ npm i cliengo-winston --save
Usage
const logger = require('cliengo-winston')(module)
logger.error('It does not work', err)
logger.info(`Connected to DB + ${db.url}`)
Options
- MODULE_LOGGING_FOCUS: If
process.env.MODULE_LOGGING_FOCUS
is set, winston will only log from the specified module - LOGGING_LEVEL:
process.env.LOGGING_LEVEL
can be used to set the maximun logging level without having to deploy.