Skip to main content

A logger with rich formatting

Project description

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

Project details


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.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pritty_logger-0.3.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file pritty_logger-0.3.3.tar.gz.

File metadata

  • Download URL: pritty_logger-0.3.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for pritty_logger-0.3.3.tar.gz
Algorithm Hash digest
SHA256 d719762eb5e06ebd85e42388f9307708bc3712bbf5cd91fee50d6a0f8db7ff4d
MD5 673586719a6b6171a420519817ca2a7d
BLAKE2b-256 cfe210846ea516bbd92b07747be497fe88010c948e70d988d27e03df6570aff4

See more details on using hashes here.

File details

Details for the file pritty_logger-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: pritty_logger-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for pritty_logger-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dc66b344b0316a58efce6a18daed76069fd0dba5fbefe8d348672f5696294b3e
MD5 52a1e9b89e7f02c09755d00e08e30072
BLAKE2b-256 3e1d96a594764aa4f87c6504081a5c62155dbf186ecaa9e867153d73a988d2cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page