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.1.tar.gz
(4.0 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.1.tar.gz.
File metadata
- Download URL: pritty_logger-0.3.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efde374ecbe008b6122b3316864c49e1e98b3889a8dae046783e869e6d15435b
|
|
| MD5 |
0b19e618dd19214d631db77249298aaa
|
|
| BLAKE2b-256 |
b3ca8821d15d7113b244b7d2c7333d5e2f6cd077dfabc630cd8a9cd877075640
|
File details
Details for the file pritty_logger-0.3.1-py3-none-any.whl.
File metadata
- Download URL: pritty_logger-0.3.1-py3-none-any.whl
- Upload date:
- Size: 4.0 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 |
0c42b3585676dce98da5fca925cb720d23644c4be4601bb8e1f63b75f463746c
|
|
| MD5 |
db3ca1576896f881c6283f6b076f3ccd
|
|
| BLAKE2b-256 |
40fb5b8bd6e58093a7b14e6797318c2f080b92a69f446540e4fccad86bd9e98c
|