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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pritty_logger-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 74a0e21014062d7388f394269c4f79198b6a61a4cea9d77d4d1e39b4d63fdd80
MD5 14ced26285708d9eb084239b3af6dbb6
BLAKE2b-256 94b5a28ca4c26d656c7c613580e892ef3fea4ea0488effac331e7a9ffd2785fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pritty_logger-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba5c7dbfd28546b56d07a18f412e84cef83125ef0ab9a0972aaa7e2c6643de8c
MD5 7ee2d7ba99a5590f147f9d9dbaaeb665
BLAKE2b-256 22f6ab553520fcb419412959863006711020ac6b3713603da1051514d1b479d8

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