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

Uploaded Python 3

File details

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

File metadata

  • Download URL: std_py_logger-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 1e90cb1bd0d59b4f8dc39d2df8721bb8380e3584be61d7139139f0cd16ed6a21
MD5 179b8cd030ef378d92b64884d11c3763
BLAKE2b-256 7d5398f22b40c7aa0738790fbef3cf2a817e0d690f6012c32d1d4cf12ebd46bc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: std_py_logger-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c1116f2d06226bf3f9fcab8ad0c3669bee71cf686af952008739c2c5b99b4680
MD5 08dd39ab27e71c9fd23b9a330a26800b
BLAKE2b-256 f7f8320b0e08dfa8020714bf9d24a8435b06869e695d18058adb6da48cc1b699

See more details on using hashes here.

Provenance

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