Skip to main content

A colorful logging library for Python

Project description

log_colors is a simple logging library that allows you to log in color.

Creation

The logger can be instantiated in one of the following ways:

# For the default use case
logger = log_colors()

# With a custom class name
logger = log_colors(filename="Custom Name")

# Setup to save to a file
logger = log_colors(log_file="/path/to/file")

Usage

There are four logging methods

# For a general message
logger.info("Info message")

# For an error message
logger.info("Error message")

# For a success message
logger.success("Success message")

#For a warning message
logger.warning("Warning message")

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

log_colors-0.1.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

log_colors-0.1.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file log_colors-0.1.1.tar.gz.

File metadata

  • Download URL: log_colors-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for log_colors-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1d1d242df57d5263dca9199e8b80cba943e773dca9da9c13be37e74b5cb4b31f
MD5 2842648fbad6fa18931fe5e32362918b
BLAKE2b-256 56cce5e6a32d7e7b192e8f73e0f6b66b7b9c0268731d34e4cfbf3f60c3490b04

See more details on using hashes here.

Provenance

The following attestation bundles were made for log_colors-0.1.1.tar.gz:

Publisher: python-publish.yml on avery-kb/log_colors

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

File details

Details for the file log_colors-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: log_colors-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for log_colors-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d0b1ee29c37f0277b68d17a23bd574ee0f9e7da458bcd295973b9f7ef6c7bc82
MD5 11033cae91844071e4c454cf30a3e25d
BLAKE2b-256 8baee6a74791243565c10537190055f30c7d6f18da4002edd687620e5220eb69

See more details on using hashes here.

Provenance

The following attestation bundles were made for log_colors-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on avery-kb/log_colors

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