Prism – Colourise log files (with ANSI characters codes)
A command line log colouriser utility.
(sudo) pip install logprism
prism -g /var/log/*.log
prism -m /var/log/apache2/*log
- Show some tail lines when using -w: Make a line cache (count total lines with wc -l) from the end of the file using some blocksize.
- Can be done with readlines() first. Then seek and read blocksize bytes from len(file)-blocksize and update cache.
- Later enable ncurses scrolling for earlier lines?
- Show n lines by default (a screenful / filecount?)