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

Uploaded Python 3

File details

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

File metadata

  • Download URL: std_py_logger-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 fb3fe53bda48b511396ac52f6a8693a72afdc13f03145435dfbf46e35b6e0661
MD5 aeb539820f29106d9c8a229c3560da72
BLAKE2b-256 10e04211adfba6754105dcbe86eac1d863b132c2dd22a679cbcd0030d91fd972

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: std_py_logger-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e09fe9a65f52f132c4ddddccf593fdc3619793bd20e1319772e781b0b6221f05
MD5 b78c48b2b5735a4afb6bd2e6aec3188b
BLAKE2b-256 a884f77bb15ebb62334f57766de063ff86b41d036a3232a13934edcae375655a

See more details on using hashes here.

Provenance

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