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.
pip install pritty_logger
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".