A logger with rich formatting
Project description
Pritty logger
A simple logger that logs to console using the rich library and to file in /var/log/ or to ~/.log/. Created to simplify setting up logging in containerized development and deployment.
Installation
pip install pritty_logger
Usage
from pritty_logger import RichLogger
logger = RichLogger("example")
logger.log("This is an info message")
logger.log({"key": "value"}, level="debug")
Supports levels "debug", "info", "warning", "error", "critical". Defaults to "info".
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
pritty_logger-0.3.4.tar.gz
(4.4 kB
view details)
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 pritty_logger-0.3.4.tar.gz.
File metadata
- Download URL: pritty_logger-0.3.4.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
874f40a89f35d4b22450f59ed22b48160f677c1ac224271790eb16dcbc71e76d
|
|
| MD5 |
d50ce1ee710caf77b01b0392cfadaf26
|
|
| BLAKE2b-256 |
3c6d15cd04ef99fb144b81f6563f8d5302fb4fc064c85a088351f7862efb55b3
|
File details
Details for the file pritty_logger-0.3.4-py3-none-any.whl.
File metadata
- Download URL: pritty_logger-0.3.4-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d87da28c5996d310e8f1f968dc959c1627f8f9921cbb00897d159b5569c299b
|
|
| MD5 |
ccd04bde7723466f7a451435dfebc1d6
|
|
| BLAKE2b-256 |
4d4e6a3eb9ff70b7610c2b93368974f1ad2739c17db685be62c8bc334e09b97e
|