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 = module loggerlogger
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.