Skip to main content

A simple log file analyzer with summary and search functionality.

Project description

LogSnap

LogSnap is a simple command-line tool for analyzing log files. It provides a clear, colored summary of log levels and allows users to search for specific keywords within the logs, highlighting the results for easy troubleshooting.

Features

  • Log Summary: Get a quick overview of log levels (DEBUG, INFO, WARNING, ERROR, CRITICAL, FATAL) with colored output.
  • Keyword Search: Search for specific keywords in the log file and see the results highlighted in color.
  • Cross-Platform: Works seamlessly on Windows, Mac, and Linux.

Installation

Install LogSnap using pip:

pip install logsnap

Usage

To get a summary of the log file, run:

logsnap path/to/logfile.log

To search for a specific keyword in the log file, use:

logsnap path/to/logfile.log --search keyword

Or using the short option for search:

logsnap path/to/logfile.log -s keyword

License

This project is licensed under the MIT License.

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

logsnap-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logsnap-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file logsnap-1.0.0.tar.gz.

File metadata

  • Download URL: logsnap-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for logsnap-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cc49f28d93aa9edfaf8caf63819b4de42a9dc697a348a43e56aca24af65616e8
MD5 05d9cf0fe15fb14ed6de037d98d9f01d
BLAKE2b-256 51142664f74069368fbf82c2f8467178602c89c63d44369532d76785ca3600c4

See more details on using hashes here.

File details

Details for the file logsnap-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: logsnap-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for logsnap-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab9a4eb1a48bebcc70ac585e8824c63fc229c2a7cd5d5fd0bde461d5ce7f5803
MD5 ed77d8ea5e929c8e9782260989d49725
BLAKE2b-256 873559902236f02bca44676006045847bf7274bd255a31d2e871b2bb24352339

See more details on using hashes here.

Supported by

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