Hello,
Recently I upgraded to Winston 3.0.0 and decided to add some message formatting as well. I my old setup I never used the messageFormatter property of winston-cloudwatch, but now I felt a need to.
However it seems like the messageFormatter function is never executed. No matter what I change on the logObject or what I return from the function. Even when I do a console.log in the formatter, it never shows up.
I did notice that the whole formatting system of Winston changed quite a bit since 2.x. Maybe this had an impact on this formatter as well? Do you have a working example somewhere?
Best, Thijs
Hello,
Recently I upgraded to Winston 3.0.0 and decided to add some message formatting as well. I my old setup I never used the
messageFormatterproperty ofwinston-cloudwatch, but now I felt a need to.However it seems like the
messageFormatterfunction is never executed. No matter what I change on the logObject or what I return from the function. Even when I do aconsole.login the formatter, it never shows up.I did notice that the whole formatting system of Winston changed quite a bit since 2.x. Maybe this had an impact on this formatter as well? Do you have a working example somewhere?
Best, Thijs