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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pritty_logger-0.3.2.tar.gz
  • Upload date:
  • Size: 4.0 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.2.tar.gz
Algorithm Hash digest
SHA256 9d9fb55b9ad408cac09fafc3bf03d1a2755045af4fd4bb74f55d37c05441c3d7
MD5 07aa21519cb1cb84e516bac3800e702b
BLAKE2b-256 e0b0f5061d18a7c136f6c50051342840e28a5a4e8116e1b4f576cd8920e6be3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pritty_logger-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e2f3d9bd86835151c6807279a47a501e8df3cb47e10fac662ae21ea15b3ed096
MD5 8289e3ed21fa277f9911d76fd6a9c917
BLAKE2b-256 c48b3067db6c8d99c28ebb9eed20b82df949444fb3f071d49255e2e5b40fd7b4

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