You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to log to two different files with two different formats for the same logging severity level. Very similar to issue #1401 however, instead of formats within a regular transport, it's about formats within exceptionHandler transports.
What version of Winston presents the issue?
v3.8.2
What version of Node are you using?
v19.1.0
If this worked in a previous version of Winston, which was it?
So, I have the readableLogFormat for all logs, and within the first "File" transport inside "exceptionHandlers", I've specified the json() format, but it doesn't work. In both files, I get the output of "readableLogFormat". This same exact thing works, specifying a format, for a regular "transports" but not when the format is inside a "exceptionHandlers" transport.
Anyone know why that is, or what am I doing incorrect?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
馃攷 Search Terms
logging to two files with two different formats
The problem
I am trying to log to two different files with two different formats for the same logging severity level. Very similar to issue #1401 however, instead of formats within a regular transport, it's about formats within exceptionHandler transports.
What version of Winston presents the issue?
v3.8.2
What version of Node are you using?
v19.1.0
If this worked in a previous version of Winston, which was it?
No response
Minimum Working Example
This is what I have tried,
Additional information
So, I have the readableLogFormat for all logs, and within the first "File" transport inside "exceptionHandlers", I've specified the
json()
format, but it doesn't work. In both files, I get the output of "readableLogFormat". This same exact thing works, specifying a format, for a regular "transports" but not when the format is inside a "exceptionHandlers" transport.Anyone know why that is, or what am I doing incorrect?
Thanks in advance.
The text was updated successfully, but these errors were encountered: