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.1.tar.gz
(2.5 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.1.tar.gz.
File metadata
- Download URL: pritty_logger-0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1250dd200f35bd94e3d917d645241e8605d4f7e59362a7996f48c9f5588ef0c2
|
|
| MD5 |
296a6a05e98add1cb1b2cbc1af9066a8
|
|
| BLAKE2b-256 |
9a9151bcc02a5332d9dcedba7640fc4f8dbe43c2fd62e4d51cca6f1bee3eb38f
|
File details
Details for the file pritty_logger-0.1-py3-none-any.whl.
File metadata
- Download URL: pritty_logger-0.1-py3-none-any.whl
- Upload date:
- Size: 3.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 |
e2f0ec0a7421025087bf4ba49542f03364baaafba4370800f91c8c3f71274f0c
|
|
| MD5 |
bd45fb1911a272e56e61364f4dc5c5f2
|
|
| BLAKE2b-256 |
fc495742d0cf403401e2422473410efadb1bf49e6e634910a5e33ce6091e0ca2
|