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.2.tar.gz
(2.7 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.2.tar.gz.
File metadata
- Download URL: pritty_logger-0.2.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d4cdc913580e378a8952b98e3615b68ccc6ec32f750636a7ef43b61f7b10b20
|
|
| MD5 |
8bbd2072d0f08f952bfe601b74d6afdd
|
|
| BLAKE2b-256 |
5fb4c6f21675f37eb0a95db138a69567768840622c9ddb6475fcaee8e43d573a
|
File details
Details for the file pritty_logger-0.2.2-py3-none-any.whl.
File metadata
- Download URL: pritty_logger-0.2.2-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.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc8bd2155477a967efbc4cb2e8c04e555ed36a290ef7dfa1b5e4a0c319ca1847
|
|
| MD5 |
4b117e10d5d4d9eaa77dc1d88472526c
|
|
| BLAKE2b-256 |
6a2bc1dfe5eb2bdfbc49e249d50eca9fe276181e549ccc9cc2fe187cfc4bccf4
|