Skip to main content

Prism – Colourise log files (with ANSI characters codes)

Project description

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?)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logprism-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file logprism-0.1.0.tar.gz.

File metadata

  • Download URL: logprism-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for logprism-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e23b80e3e861774016048787c781add41c2457366e5754e36af99049727deb17
MD5 59388f187699ea347635da6b47f8a767
BLAKE2b-256 cafb05ffb117dc0e00359496e818fe5b0d58aee272598f75cdbe953ed2ba91dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page