Skip to main content

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


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.0.tar.gz (2.7 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.2.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pritty_logger-0.2.0.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

Hashes for pritty_logger-0.2.0.tar.gz
Algorithm Hash digest
SHA256 871306b71606410672c9179f644648ae19df4900d4c0aba8ddace6d599611f99
MD5 4c4a741a8f1a0c57abc307960db24534
BLAKE2b-256 d125b41cad440d419ccf4c9a349872e10a847ecbbc896ab36893cd0f6b284a31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pritty_logger-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e6365b665111ff4a32e8589a0c87ac4c7156f41f44a507cda682bf08513eed6
MD5 e6b41b3e924cd4e602ae6654e4d0d785
BLAKE2b-256 23ec12451967013431ff68e75fd81402f3284a981e42a70bc7ea5e52b4146eb6

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