Skip to main content

parse logs and make pretty colors

Project description

PrismCat

Explanation

PrismCat reads a file (or stdin) and highlights lines based on regex supplied in arguments.

Colors follow the rainbow in priority e.g. (Error)>Red>Yellow>Green>Blue>Purple and are specified as arguments with their initial letter: -e -r -y -g -b -p, each taking a quoted regular expression as input.

PrismCat can output to stdin, or to an html file (using the -o option) for future reference retaining the coloring.

the -a flag eliminates all lines that aren't currently highlighted, filtering output to only the important lines.

Future

Eventually, PrismCat should be a full drop-in replacement for cat with the additional features provided in the current version

Project details


Download files

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

Source Distribution

prismcat-1.1.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

prismcat-1.1.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

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