R
Railwayβ€’7mo ago
zotovby

Log Highlighting Issue in Node.js Server with Morgan Logging

I have noticed that errors in the logs are supposed to be highlighted, but for some reason, they all appear in the same color. I'm curious to understand the reason behind this and how I can address it. Could you please provide some insights or guidance on why the log errors might not be displaying with distinct colors? Thank you for your time and assistance.
No description
Solution:
pm2 module was the problem πŸ™‚
Jump to solution
5 Replies
Percy
Percyβ€’7mo ago
Project ID: e39c2b27-36e2-4f3c-92a6-20d923400faf
zotovby
zotovbyβ€’7mo ago
e39c2b27-36e2-4f3c-92a6-20d923400faf
Brody
Brodyβ€’7mo ago
logs to stderr will be coloured red as that generally means error. logs to stdout will not be coloured. it's also worth mentioning if someone is coloured red it may not always be an error.
Solution
zotovby
zotovbyβ€’7mo ago
pm2 module was the problem πŸ™‚
Brody
Brodyβ€’7mo ago
yep that would do it