jaredhanson / connect-flash

Flash message middleware for Connect and Express.
MIT License
1.24k stars 158 forks source link

Winston logging support #14

Closed niftylettuce closed 10 years ago

niftylettuce commented 10 years ago

In Winston we use "warn" as the error type, e.g. logger.warn('something').

In Connect-Flash we use "warning" as the error type, e.g. req.flash('warning', 'something').

Would it be OK with you if I submitted a PR for adding legacy/fallback support so we can use connect-flash with "warn" as an error type?

jaredhanson commented 10 years ago

I'm not seeing how these things are related. It's up to you how you add things to the flash, you can use req.flash('warn', 'something') if you want.