bithavoc / express-winston

express.js middleware for winstonjs
https://www.npmjs.com/package/express-winston
MIT License
797 stars 187 forks source link

winston.Logger is not a constructor #182

Closed Shadownc closed 6 years ago

Shadownc commented 6 years ago

winston version 3.0.0 when I try it:

    transports: [
        winston.createLogger({
            transports: [
                new winston.transports.Console({
                  json: true,
                  colorize: true
    }),
       new winston.transports.File({ filename: 'logs/success.log' })
            ]
        })
    ]
}))
//winston.Logger is not a constructor
dmichelin commented 6 years ago

Duplicate of https://github.com/bithavoc/express-winston/issues/175, express winston is not compatible with winston 3