Skip to main content

A simple colored logger for Python

Project description

py_logger

A simple colored logger for Python.

Installation

pip install .

Usage

from std_py_logger import get_logger

logger = get_logger(__name__)

logger.debug("This is a debug message.")
logger.info("This is an info message.")
logger.warning("This is a warning message.")
logger.error("This is an error message.")
logger.critical("This is a critical message.")
from std_py_logger import get_logger

logger = get_logger(__name__, log_file=True) # logs to file

logger = get_logger(__name__, log_prints=True) # redirects prints 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

std_py_logger-0.0.5.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

std_py_logger-0.0.5-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file std_py_logger-0.0.5.tar.gz.

File metadata

  • Download URL: std_py_logger-0.0.5.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for std_py_logger-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d9b38973912a13675183449dc2fb6026e6c7b711431f4c3de3f804b68c15c84b
MD5 1d724bce1a667195b1451e4f829269ed
BLAKE2b-256 22c6df74a494dabf4d112b8f47b6394c52f5fa37fcce3f2b2783eb5d9d8d831e

See more details on using hashes here.

Provenance

The following attestation bundles were made for std_py_logger-0.0.5.tar.gz:

Publisher: python-publish.yml on gpastal24/std_py_logger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file std_py_logger-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: std_py_logger-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for std_py_logger-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bacb0eb69dd64c6242c259a8013fae7daffadadc3ba4171e075da26a5bd7fa19
MD5 58188bb469009ca7379bbf0ab452966f
BLAKE2b-256 f8392bbd41681c536da041d805c557740a9cca0e0e2823adabd212e0c689a33e

See more details on using hashes here.

Provenance

The following attestation bundles were made for std_py_logger-0.0.5-py3-none-any.whl:

Publisher: python-publish.yml on gpastal24/std_py_logger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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