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

Uploaded Python 3

File details

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

File metadata

  • Download URL: std_py_logger-0.0.3.tar.gz
  • Upload date:
  • Size: 15.5 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.3.tar.gz
Algorithm Hash digest
SHA256 5b1ad3652599ef89647dc82b765786a0f727b47ca800647fd8d1de6eec2e1115
MD5 def4b1da29beaff21f579b7d8d822871
BLAKE2b-256 b82892d51151b02d5f0cba2d79f2d11590fb4932db492eceb3c9aeeec9565d0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for std_py_logger-0.0.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: std_py_logger-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 14.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d8c82091f600b2b01c144b6504c256e2c7c42b6ef9c49e1e5632eb5fafadb29d
MD5 05eadf6d5ce2c7e53ff1f634c75fdb97
BLAKE2b-256 eea1270df165bb6cffcb48a36ddc864440eefd2c5c99d1401f3da67799c5aae9

See more details on using hashes here.

Provenance

The following attestation bundles were made for std_py_logger-0.0.3-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