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.4.tar.gz
(3.3 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.4.tar.gz.
File metadata
- Download URL: pritty_logger-0.2.4.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a92e43ee9e3bf0fa50c0e2c3de41d72c2fb821df1b2fb2aab614eddae24f8ca
|
|
| MD5 |
e466e3e757bbc98d84c8ec3af8a36af5
|
|
| BLAKE2b-256 |
7b2524e7d97c9d61b460700fdfdf1bb613b87226baf8a2309b0f007d7b1bda78
|
File details
Details for the file pritty_logger-0.2.4-py3-none-any.whl.
File metadata
- Download URL: pritty_logger-0.2.4-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 |
a62e8cc2b9818d94b073e62f67c45fa44ee31ac356600c827db607055588805d
|
|
| MD5 |
3552854bd21f5c90e2b48511ff4f9cdd
|
|
| BLAKE2b-256 |
b5cc4e276ee99ce3cea16167c2c0170910beca4f0f94e1aed6fa08cd6bd926f6
|