Add your description here
Project description
🌟 Sane Rich Logging - Sparkling Logging Made Simple! 🚀
Welcome to Sane Rich Logging! ✨ A beautiful logging package that makes setting up robust and pretty logging in Python a breeze! With rich console output and flexible file handling, your logs will shine brighter than ever! ✨🔮
🎉 Features
- Rich Logging Console Output 🌈: Make your logs delightful with colorful, informative formatting.
- Rotating File Logs 🗂️: Keep your logs neat and tidy with built-in rotation.
- Simple Integration 🚀: Plug and play with minimal configuration.
🚀 Installation
Using pip
:
pip install git+https://github.com/jakob1379/sane-rich-logging.git
Using uv
:
uv install git+https://github.com/jakob1379/sane-rich-logging.git
💡 Usage
With Sane Rich Logging, setting up logging is easy-peasy! 🍋 Here is how to use it:
Setting Up Logging
Just import the package and call setup_logging()
to configure your logger:
from sane_rich_logging import setup_logging
setup_logging()
Running the Example
You can also run the package directly to see the magic in action! 🌠
python -m sane_rich_logging
Output
11/22/24 11:38:00 DEBUG [11/22/24 11:38:00] This is a debug message.
INFO [11/22/24 11:38:00] This is an info message.
WARNING [11/22/24 11:38:00] This is a warning message.
ERROR [11/22/24 11:38:00] This is an error message.
CRITICAL [11/22/24 11:38:00] This is a critical message.
You can see the log at /tmp/tmp2lkfop5k-rich.log
The console output is visually pleasing, providing clear and colorful messages for each log level, while the written log is saved in a detailed format for easier debugging and tracking:
2024-11-22 11:38:00,187 [DEBUG] [__main__.py:11] - This is a debug message.
2024-11-22 11:38:00,190 [INFO] [__main__.py:12] - This is an info message.
2024-11-22 11:38:00,191 [WARNING] [__main__.py:13] - This is a warning message.
2024-11-22 11:38:00,192 [ERROR] [__main__.py:14] - This is an error message.
2024-11-22 11:38:00,193 [CRITICAL] [__main__.py:15] - This is a critical message.
✨ It's that simple to make your logging glimmer with Sane Rich Logging! 🎇
❤️ Contributions Welcome
Have ideas or want to help make Sane Rich Logging even shinier? Feel free to submit an issue or pull request! Contributions are more than welcome! 🌟
📄 License
This project is licensed under the MIT License. 📝
Enjoy logging, the sparkling way! 🪄✨
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
File details
Details for the file sane_rich_logging-0.2.0.tar.gz
.
File metadata
- Download URL: sane_rich_logging-0.2.0.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.30
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 499bd40e875dbb865963eafcebc6abdb92798ba9bb3bd4a860cdd84ce26e37f4 |
|
MD5 | 2fad9b53ddc8318c86efdfa2b56f387c |
|
BLAKE2b-256 | 624e041ae714b4c1c4e88db924207d9c6a975f3a5b10f0661869798740229f8e |
File details
Details for the file sane_rich_logging-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: sane_rich_logging-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.30
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25a5a145ea13cb21350e41d1f91938ecc78b6c0b9e9429a003e38adc5f34a52c |
|
MD5 | 14bd9408ce3044e86ab5805948c34699 |
|
BLAKE2b-256 | ef5d18582371d069d92472cdbb216ffe97af3d86750b0dcd8f83d3912695198f |