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
log_colors-0.1.0.tar.gz
(2.5 kB
view details)
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40952fd32c95e7265774a9faa13392bf2987513ee0dfad0634bf98b4e994ca77
|
|
| MD5 |
e06eea229c906b0be58f5a532f36ef8f
|
|
| BLAKE2b-256 |
34ed57e7ca430ed936e1417daadfd081adead121b9fb74325563ba67cdfdc877
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b622dccb34e9b78455601b10cddee8b318e95428dab568067662fe4b36456d3b
|
|
| MD5 |
b1b3078dcf27ca2141d7325ce6a95c75
|
|
| BLAKE2b-256 |
e81b052342433702c1345d3dce3bbf94c51cef256a595179cb3eb0fd81d8f284
|