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.
5 Replies
Project ID:
e39c2b27-36e2-4f3c-92a6-20d923400faf
e39c2b27-36e2-4f3c-92a6-20d923400faf
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
pm2 module was the problem π
yep that would do it