Logcat style log library
Project description
Logcatter 🐱
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
Logclass:Log.d(),Log.i(),Log.w(), andLog.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
PyCharm
PowerShell 7 on Windows Terminal
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file logcatter-0.1.0.tar.gz.
File metadata
- Download URL: logcatter-0.1.0.tar.gz
- Upload date:
- Size: 109.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e89a5702ce001bc4a8245aa01680cc49875af28e1cb29bfc5e831ff2b043720e
|
|
| MD5 |
a50b06d3baf1ecb0dd391d5ef34c84bb
|
|
| BLAKE2b-256 |
1fe1d79a064b49b584ec29585daa91bb7069382d39cdce8e856c53e3c65ffdcb
|
Provenance
The following attestation bundles were made for logcatter-0.1.0.tar.gz:
Publisher:
python-publish.yml on RivMt/logcatter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
logcatter-0.1.0.tar.gz -
Subject digest:
e89a5702ce001bc4a8245aa01680cc49875af28e1cb29bfc5e831ff2b043720e - Sigstore transparency entry: 295271729
- Sigstore integration time:
-
Permalink:
RivMt/logcatter@fb01fc9fcab4348c557c0145e3b8076ab3fc016a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/RivMt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@fb01fc9fcab4348c557c0145e3b8076ab3fc016a -
Trigger Event:
release
-
Statement type:
File details
Details for the file logcatter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: logcatter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a81f54d7a347a2f469dfbb321472eb9bc8b51f35fc1b81c3f22bb4cd0281267
|
|
| MD5 |
000e60c207a898a3b217b54c3a474f30
|
|
| BLAKE2b-256 |
8e75e734d6577e6e676b6a399f91edc0646935b44cc0a6ff1311c8e99d1aab3a
|
Provenance
The following attestation bundles were made for logcatter-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on RivMt/logcatter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
logcatter-0.1.0-py3-none-any.whl -
Subject digest:
8a81f54d7a347a2f469dfbb321472eb9bc8b51f35fc1b81c3f22bb4cd0281267 - Sigstore transparency entry: 295271736
- Sigstore integration time:
-
Permalink:
RivMt/logcatter@fb01fc9fcab4348c557c0145e3b8076ab3fc016a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/RivMt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@fb01fc9fcab4348c557c0145e3b8076ab3fc016a -
Trigger Event:
release
-
Statement type: