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

Uploaded Python 3

File details

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

File metadata

  • Download URL: log_colors-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for log_colors-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40952fd32c95e7265774a9faa13392bf2987513ee0dfad0634bf98b4e994ca77
MD5 e06eea229c906b0be58f5a532f36ef8f
BLAKE2b-256 34ed57e7ca430ed936e1417daadfd081adead121b9fb74325563ba67cdfdc877

See more details on using hashes here.

File details

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

File metadata

  • Download URL: log_colors-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for log_colors-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b622dccb34e9b78455601b10cddee8b318e95428dab568067662fe4b36456d3b
MD5 b1b3078dcf27ca2141d7325ce6a95c75
BLAKE2b-256 e81b052342433702c1345d3dce3bbf94c51cef256a595179cb3eb0fd81d8f284

See more details on using hashes here.

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