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
Console transport is not serializing the arguments.
Expecting all arguments
What do you expect to happen instead?
According to https://github.com/winstonjs/winston/blob/master/README.md#usage the above states: ${info.level}: ${info.message} JSON.stringify({ ...rest }) instead the following code log.debug('hello', { there: 1 }); results in the following: debug: hello [object Object] {"service":"user-service"}. My Object has not been serialized.
Other information
The text was updated successfully, but these errors were encountered:
Hmm, I believe the issue I filed, #1933, is related to this. It seems like whenever two or more transports are in use, the first transport listed gets the full info object, but the second transport only receives an info object with Winston "known" properties, i.e. level, message, timestamp, and the [Symbol(splat)] properties.
Please tell us about your environment:
winston
version?_3.2.1winston@2
winston@3
node -v
outputs:_v10.16.0What is the problem?
Console transport is not serializing the arguments.
Expecting all arguments
What do you expect to happen instead?
According to https://github.com/winstonjs/winston/blob/master/README.md#usage the above states:
${info.level}: ${info.message} JSON.stringify({ ...rest })
instead the following codelog.debug('hello', { there: 1 });
results in the following:debug: hello [object Object] {"service":"user-service"}
. My Object has not been serialized.Other information
The text was updated successfully, but these errors were encountered: