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. 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.2.3.tar.gz
(3.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.2.3.tar.gz.
File metadata
- Download URL: pritty_logger-0.2.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfc2d5941c60ebb62bbeebcadbb256f1f78228ea5621f6444f18cc9d6a3981fc
|
|
| MD5 |
3f618b384960f787b7967b7eb5a3b0fe
|
|
| BLAKE2b-256 |
ec656a9068968d85a7e150e5fcd11c99d12dae96b438784fd665c6d16f4db77b
|
File details
Details for the file pritty_logger-0.2.3-py3-none-any.whl.
File metadata
- Download URL: pritty_logger-0.2.3-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f21e6ff5aff046c5b10db9df64d8f64c5276a8d21508396045892d354a2cd4ce
|
|
| MD5 |
3867b3c9cc3682097007fd886a099d0e
|
|
| BLAKE2b-256 |
40906af64741837deb8ae888974386dbca1ee29025b7defa25b65d9f1e6007fe
|