bithavoc / express-winston

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

Send custom message to transport.File #137

Closed temuccio closed 7 years ago

temuccio commented 7 years ago

Hello, it is possible to send a custom message into a File? I have many console.log in my code and I would like send it in one file log. Thanks

Temuccio

rosston commented 7 years ago

I think you will want to use winston directly. express-winston is just a couple express middleware functions to log requests and errors (during requests).

temuccio commented 7 years ago

@rosston I have tried but doesn't works. In the file my custom message are not stored.