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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d1d242df57d5263dca9199e8b80cba943e773dca9da9c13be37e74b5cb4b31f
|
|
| MD5 |
2842648fbad6fa18931fe5e32362918b
|
|
| BLAKE2b-256 |
56cce5e6a32d7e7b192e8f73e0f6b66b7b9c0268731d34e4cfbf3f60c3490b04
|
Provenance
The following attestation bundles were made for log_colors-0.1.1.tar.gz:
Publisher:
python-publish.yml on avery-kb/log_colors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
log_colors-0.1.1.tar.gz -
Subject digest:
1d1d242df57d5263dca9199e8b80cba943e773dca9da9c13be37e74b5cb4b31f - Sigstore transparency entry: 665332031
- Sigstore integration time:
-
Permalink:
avery-kb/log_colors@2885c40821aef71144bb8927b2a18520f1f136f4 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/avery-kb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2885c40821aef71144bb8927b2a18520f1f136f4 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0b1ee29c37f0277b68d17a23bd574ee0f9e7da458bcd295973b9f7ef6c7bc82
|
|
| MD5 |
11033cae91844071e4c454cf30a3e25d
|
|
| BLAKE2b-256 |
8baee6a74791243565c10537190055f30c7d6f18da4002edd687620e5220eb69
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
log_colors-0.1.1-py3-none-any.whl -
Subject digest:
d0b1ee29c37f0277b68d17a23bd574ee0f9e7da458bcd295973b9f7ef6c7bc82 - Sigstore transparency entry: 665332043
- Sigstore integration time:
-
Permalink:
avery-kb/log_colors@2885c40821aef71144bb8927b2a18520f1f136f4 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/avery-kb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2885c40821aef71144bb8927b2a18520f1f136f4 -
Trigger Event:
release
-
Statement type: