bithavoc / express-winston

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

`level` intentionally different from Winston? #263

Open codingthat opened 3 years ago

codingthat commented 3 years ago

Hi! Thanks for providing this great library. :)

I'm up-to-date:

    "express": "^4.17.1",
    "express-winston": "^4.1.0",
    "winston": "^3.3.3"

Is it intentional that level behaves differently than in Winston itself? Here it seems to set what logs are output as—i.e. you can make every request be output as an error—but there it seems to set the threshold for when logging occurs at all.

Let me know what you think. :) Thanks!