How to customize the display of colored lines in logs?

Already answered in