man loco (Commandes) - colorize /var/log/messages for easy reading
NAME
loco - colorize /var/log/messages for easy reading
SYNOPSIS
loco [FILE]...
DESCRIPTION
Colorize FILES(s), or standard input and print on the standard output. With no FILE, read standard input.
To produce colors, loco uses the Term::ANSIColor module.
EXAMPLES
loco /var/log/messages
tail -f /var/log/messages | loco
AUTHOR
Jules Stuifbergen <jules@zjuul.net>. Basically, I was bored, and rewrote 'logcolorise.pl' from Michael Babcock from scratch. Feel free to mail me patches, improvements, or fixes.
BUGS
The Escape codes used for coloring are characters, too, so lines will be broken off apparently prematurely. If there's no match, the lines will be displayed in the default color. If you default color happens to be red, the effect of red keywords will disappear.
LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.