SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Sponsored Links

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files
ABOUT
This is a short (no, it's not short anymore :) perl script to colorize' your logs. You can use your own colors, you can simply modify your config file in your home directory ($HOME), or system-wide (/etc/colorizerc). Some colors are shit, 'cause I was developing the script on my sisters' mono vga monitor. If you have a good "theme", I please you to send me, and I will put into the tarball.
INSTALL
Put somewhere in your path. Or just set the PATH environment variable.

You will need a Perl module called Term::ANSIColor by Russ Allbery and Zenin (thanks for it).

You can download from the CPAN archive: http://www.cpan.org/modules/by-module/Term/

or (when you use Debian GNU/Linux potato) simply type: apt-get install libansicolor-perl

or (when you use Debian GNU/Linux woody or newer), it is in the perl-modules package.

USAGE
Just pipe the logs in the script, and have fun.
EXAMPLES
cat /var/log/daemon.log | colorize tail -0f /var/log/daemon.log /var/log/apache/access.log | colorize colorize < /var/log/messages
TIPS
In TIPS file and in examples directory.

ANOTHER TIP:
Use ccze by Gergely Nagy (mhp) http://bonehunter.rulez.org/CCZE.html


Sponsored Links

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.