loco - colorize /var/log/messages for easy reading
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.
tail -f /var/log/messages │ loco
Jules Stuifbergen <email@example.com>. Basically, I was bored, and
rewrote ’logcolorise.pl’ from Michael Babcock from scratch. Feel free
to mail me patches, improvements, or fixes.
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.
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.