Closed nagapavan closed 5 years ago
Seeing following error after upgrading to Winston 3.1 and express-winston 2.6.0
3.1
2.6.0
TypeError: winston.Logger is not a constructor at Object.logger (/path/test-service/node_modules/express-winston/index.js:190:59)
The source code that's causing the problem: index.js:190
index.js:190
options.winstonInstance = options.winstonInstance || (new winston.Logger ({ transports: options.transports }));
Usage in Code:
expressWinston.logger(requestLoggerOptions)
Package Versions:
"express-winston" : "2.6.0", "winston" : "3.1.0",
Apologies. Just realised there is a newer express-winston version 3.0.1. Closing this off. Sorry for spamming.
Seeing following error after upgrading to Winston
3.1
and express-winston2.6.0
The source code that's causing the problem:
index.js:190
Usage in Code:
Package Versions: