bithavoc / express-winston

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

Can't use express-winston without it sending a response to the client #226

Closed liana-p closed 4 years ago

liana-p commented 4 years ago

I would like to use express-winston purely for logging purposes, but it turns out that it's automatically using res to send a response to the client, and there doesn't seem to be any option to disable it.

Is there any way to get the logging but without express-winston deciding to send responses to the client automatically? I have my own error middleware for sending error data, and this package is effectively conflicting with that.

I expected this package to be only for logging, what is the reasoning behind also having it take control of the response?