Skip to main content

Logcat style log library

Project description

Logcatter 🐱

See logcatter from PyPI

Brings the familiar convenience and readability of Android's Logcat to your Python projects.

Tired of complex logger configurations? Logcatter lets you use intuitive methods like Log.d() and Log.i() right away. It automatically tags logs with the calling filename, dramatically speeding up your debugging workflow.

✨ Key Features

  • ☕ Android Logcat Style: Get beautiful, easy-to-read logs formatted as yyyy-MM-dd HH:mm:ss.SSS [D/tag] message.
  • 🏷️ Automatic Tagging: The name of the source file (main.py) that calls the log is automatically used as the tag, so you can instantly identify the origin of a log.
  • 🎨 Colored Output: Log levels (Debug, Info, Warning, Error) are color-coded for enhanced visual recognition.
  • 🚀 Concise API: Use intuitive methods nearly identical to the Android Log class: Log.d(), Log.i(), Log.w(), and Log.e().
  • 🔧 Zero Configuration: Works right out of the box after installation with no extra setup required.

📦 Installation

pip install logcatter

🚀 Quick Start

Just import the Log class into your project and start logging.

from logcatter import Log

Log.d("This is log!!")
Log.setLevel(Log.WARNING)  # Hide DEBUG, INFO level logs
Log.i("This is info!!")  # You cannot see this because you set the minimum level `WARNING`
Log.e("ERROR!!!", e=ValueError())  # You can log the caught exception/error with argument `e`
Log.f("FATAL ERROR", s=True)  # You can log the stacktrace with flag `s`

💻 Output Example

Visual Studio Code

visual-studio-code-output-example

PyCharm

pycharm-output-exmaple

PowerShell 7 on Windows Terminal

pwsh7-wt-output-example

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

logcatter-0.3.0.tar.gz (111.6 kB view details)

Uploaded Source

Built Distribution

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

logcatter-0.3.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file logcatter-0.3.0.tar.gz.

File metadata

  • Download URL: logcatter-0.3.0.tar.gz
  • Upload date:
  • Size: 111.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for logcatter-0.3.0.tar.gz
Algorithm Hash digest
SHA256 99976c20d8dd5e3637ea22f25f012ff279cf4c1f4bf31d26201b0f179f75bf5d
MD5 e3196eccaa2395fc29e732a2b7d0dec7
BLAKE2b-256 21d1746758fc36c54ab3d985cbdf3e3acb313eafe7c1092e4be4ce370fd6dfb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for logcatter-0.3.0.tar.gz:

Publisher: python-publish.yml on RivMt/logcatter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file logcatter-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: logcatter-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for logcatter-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f09f87a5dc345e118cbad389b1dc9c48a5064a11a2126d1a6c5a6e59903f8b0
MD5 cb7e73265add8ec7597c7716957719f8
BLAKE2b-256 b5eb842f2c77b350dc688ba125edccd7bdd6cf7393e19e9527fb11c0f0a514e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for logcatter-0.3.0-py3-none-any.whl:

Publisher: python-publish.yml on RivMt/logcatter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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