Do your eyes a favor with colored log output
Posted on May 10, 2012
A simple solution to make log files more readable.
cat messy.log | colog
.. is a simple Python script, ready for your customization:
Adjust it to your needs and save it as
colog (or any other name you like)
somewhere in your path. Probably you want to tune the pattern matching and
Watch log output from running programs
$ a-very-verbose-program 2>&1 | colog
Watch a log file with
$ tail -f /path/to/some/logfile | colog
Read a log file colored in
$ cat /path/to/some/logfile | colog | less -FRS
If this simple solution does not solve your log file reading problems, have a try with a more powerful tool like MultiTail.