Plurrrr

Sun 20 Mar 2022

Color Your Logs And Stack Traces

One of the problems we had was the readability of logs. When you know what you’re looking for in a log, it is easy to search for an exception. But when you don’t know what is wrong, going through gigabytes of logs in white text on a black background can be very time consuming and error-prone.

Essentially, solution is to add colors to our logs to facilitate the readability. Wouldn’t it be great if every level (i.e., info, warning, error) message had a different color? What if we could have different colors in our stack trace to highlight different exceptions?

Source: Color Your Logs And Stack Traces, an article by Manasvi Gupta.