Skip to content

leon-gorissen/pritty_logger

Repository files navigation

Tests Build Python package

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".

About

Pretty Logger for python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages