jaredhanson/connect-flash

Winston logging support

Closed this issue · 1 comments

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?

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.