Skip to main content

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

Use your favorite tool to install the package

pip install sane-rich-logging
poetry install sane-rich-logging
uv add sane-rich-logging

💡 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sane_rich_logging-1.0.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

sane_rich_logging-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sane_rich_logging-1.0.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.30

File hashes

Hashes for sane_rich_logging-1.0.0.tar.gz
Algorithm Hash digest
SHA256 72d101b85b8f1a6a56fef289b13abf66b04ac5ccc185920acdc051fec4e79ef4
MD5 9cbe6b764f7789c67a0ffcbd5cdcbb28
BLAKE2b-256 71e0eb09d76bd94573a75adb3eb08e406b86d042f29be2ed8a55c88c8c44fdfa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sane_rich_logging-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ed9cc9e70b446ffd92afdff7aed3246b66abc9d7441217e0f349997a677ff02
MD5 e6338c7408ae85c45cdd9f1f59c8dc50
BLAKE2b-256 32ae76296e3cbe9c362feb6dea1e9fa48e01ee36a14a555faa29cbd5b1133edc

See more details on using hashes here.

Supported by

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