Closed jiinjoo closed 7 years ago
Yes, this is totally doable! In fact, the module used to do this until I accidentally broke it in 2.0.0 (https://github.com/bithavoc/express-winston/commit/e79a213d). I'll add a fix + test for it soon.
Fix is published in 2.1.0.
With reference to
I would like to pass in options.msg that contains {{res.statusCode}} but would like it coloured the same as above.
I couldn't work around it with my own middleware because options.msg is set during config and not dynamically at res.end.
Something like
with probably better checking for extra space, pre-chalking etc. Does this break any user expectation?