skip to navigation
skip to content

Not Logged In

logprism 0.1.0

Prism – Colourise log files (with ANSI characters codes)

Latest Version: 0.1.2

A command line log colouriser utility.

Installation

(sudo) pip install logprism

Usage examples

prism -g /var/log/*.log

prism -m /var/log/apache2/*log

prism /opt/local/var/macports/logs/*/*.log

Todo

  • 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.
    1. Can be done with readlines() first. Then seek and read blocksize bytes from len(file)-blocksize and update cache.
    2. Later enable ncurses scrolling for earlier lines?
    3. Show n lines by default (a screenful / filecount?)
 
File Type Py Version Uploaded on Size
logprism-0.1.0.tar.gz (md5) Source 2012-09-22 7KB
  • Downloads (All Versions):
  • 13 downloads in the last day
  • 84 downloads in the last week
  • 313 downloads in the last month