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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file prismcat-1.1.0.tar.gz.

File metadata

  • Download URL: prismcat-1.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/5.15.78-1-MANJARO

File hashes

Hashes for prismcat-1.1.0.tar.gz
Algorithm Hash digest
SHA256 57e85ae204aeda1bbc845920987919fea50218f5800563d980c206b528b311cf
MD5 d0e30d2f2dc514ab815e31515592d241
BLAKE2b-256 2ae19c602417a0398fb8e20f34a893595edec156eb5307c870c36728c85bdbcf

See more details on using hashes here.

File details

Details for the file prismcat-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: prismcat-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/5.15.78-1-MANJARO

File hashes

Hashes for prismcat-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 041654dcae1ec89e4465fb382bb446eef11f4c3a1fa276d56a634b2d4feb1f78
MD5 de0065fd5f5b89def587cab36e70a6f0
BLAKE2b-256 bbd8372457f7c181cafd0a255a903a851f72fee2eadda1a138d583dbda09cdda

See more details on using hashes here.

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