hapi-good-winston
A good reporter to send and log events with winston
Disclaimer
-
Use
v3.*
for hapi >= 18 -
Use
v2.*
for version prior to hapi v18
- Use
v1.*
for version prior to hapi v17
Installation
$ npm install --save hapi-good-winston
Usage
;;; const logger = winston; const server = ; // Set winston minimum log level to debug// winston.level = 'debug'; // Only the 'response' and 'error' event levels will be overwrittenconst goodWinstonOptions = levels: response: 'debug' error: 'info' ; const options = ops: interval: 1000 reporters: // Simple and straight forward usage winston: // Adding some customization configuration winstonWithLogLevels: // This example simply illustrates auto loading and instantiation made by good winston2: module: 'hapi-good-winston' name: 'goodWinston' args: logger goodWinstonOptions ; server ;