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
Hi @paul-uz , the above issue was resolved for me. Previously I was logging error object in error key. Now instead of error key rename it to err works logger.error(msg, { error: ErrorObj });
Converting the above to below works logger.error(msg, { err: ErrorObj });
🔎 Search Terms
error json format
The problem
The JSON format does not output the error message.
What version of Winston presents the issue?
latest
What version of Node are you using?
20.11.1
If this worked in a previous version of Winston, which was it?
No response
Minimum Working Example
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: