cliengo-winston

1.1.8 • Public • Published

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.

Package Sidebar

Install

npm i cliengo-winston

Weekly Downloads

13

Version

1.1.8

License

ISC

Unpacked Size

13.6 kB

Total Files

9

Last publish

Collaborators

  • cliengo.frontend