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.1.1.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.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pritty_logger-0.1.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 aa85a814ce7947c34a8dfc755d55d1e125275cf0b56205b4ffe18b35564ece90
MD5 687bb74dfb38c3290862458834337c69
BLAKE2b-256 1d484816cd31f1ece7bf30e5dcf3d53f5db6d02463681a43193c8caa11a15330

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pritty_logger-0.1.1-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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 edcac77ce8f374e42c2d48253a138b6da760c26930e8e85ff8e3307a6190ad00
MD5 e60edbce61840daee1a40b2696d988f1
BLAKE2b-256 e9c0424f1fb6a3eb22381bd3e6cde47ca498cfa1fcbd510bcda3c621e02c9db6

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