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.3.tar.gz (3.4 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.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pritty_logger-0.2.3.tar.gz
Algorithm Hash digest
SHA256 dfc2d5941c60ebb62bbeebcadbb256f1f78228ea5621f6444f18cc9d6a3981fc
MD5 3f618b384960f787b7967b7eb5a3b0fe
BLAKE2b-256 ec656a9068968d85a7e150e5fcd11c99d12dae96b438784fd665c6d16f4db77b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pritty_logger-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f21e6ff5aff046c5b10db9df64d8f64c5276a8d21508396045892d354a2cd4ce
MD5 3867b3c9cc3682097007fd886a099d0e
BLAKE2b-256 40906af64741837deb8ae888974386dbca1ee29025b7defa25b65d9f1e6007fe

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