A lightweight Python logging utility with colors and timestamps.
Project description
logthis
logthis is a simple yet powerful Python logging utility for cleaner, more readable, and color-coded output.
Designed for developers who want better logs without the complexity of theloggingmodule.
About
logthis is a minimal and universal logging tool that:
- Replaces boring
print()statements - Makes logs colorful, clear, and timestamped
- Works out of the box for any Python project
Why the name?
Because sometimes, you just want to... logthis().
Main Features
- Timestamped logs
- Color-coded log levels (INFO, WARN, ERROR)
- Easy to use:
log_info("Hello world") - CLI preview:
logthis --test - Lightweight, no external dependencies
Installation
Install with pip:
pip install logthis
Usage
Import and use:
from logthis import log_info, log_warn, log_error
log_info("All systems go.")
log_warn("Caution: approaching limits.")
log_error("Something broke.")
Exemple output:
[2025-05-04 14:03:25] [INFO] All systems go.
[2025-05-04 14:03:26] [WARN] Caution: approaching limits.
[2025-05-04 14:03:27] [ERROR] Something broke.
CLI Mode
You can test the output in terminal:
logthis --test
Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Credits
Developed and maintained by Kevin Gregoire.
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 logthisx-0.1.0.tar.gz.
File metadata
- Download URL: logthisx-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33aaa00f5b82ae8e20e8d40ef89fe1a83c2b7de14205dcc964ea3bdb5f52ddc1
|
|
| MD5 |
5ee086d021246b8d1e88c6c5fa30e207
|
|
| BLAKE2b-256 |
7fc297cdf61adad5692cb338e7b43b65eafc048dc4ae97fb3f1d23c02a31c577
|
File details
Details for the file logthisx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: logthisx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d1f6900b43cceb11402914757018971900838b0bbe89aed6f338a45cea8b24e
|
|
| MD5 |
cccda6af3e6d3649764f7eb4c6dfc10e
|
|
| BLAKE2b-256 |
0bce9d16fc00326339d5c58a95c16dc854a4964b7c86aa2dbec335ec6b40ba72
|