A module for colorful console logging
Project description
Lognotify — module for colorful logging
Supported features
Predefined log levels:
- info — informational messages
- warning — warnings
- error — errors
- debug — debugging messages
- critical — critical errors
- custom — custom log level
Formatting options:
- Text and level (label) colors:
black, red, green, yellow, blue, magenta, cyan, white- Additional:
light-*,dim-*(e.g.,light-red,dim-blue)
- Background colors:
- Same as text colors
- Text case options:
upper— ALL UPPERCASElower— all lowercasecapitalize— First letter uppercasetitle— Each Word Capitalized
- Works on Windows and Linux
Usage examples
from lognotify import info, warning, error, debug, critical, custom
print(info(text="System is running"))
print(warning(text="Potential issues ahead"))
print(error(text="An error occurred!"))
print(debug(text="Debugging info"))
print(critical(text="Critical failure!"))
print(custom(text="Custom log message", log_level="ALERT", text_color="magenta", letter_color="red"))
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
lognotify-0.0.1.tar.gz
(15.0 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
lognotify-0.0.1-py3-none-any.whl
(15.2 kB
view details)
File details
Details for the file lognotify-0.0.1.tar.gz.
File metadata
- Download URL: lognotify-0.0.1.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71124801581b679217786566c661370f5ced48901d4ab7b10bd49caa2fb9d076
|
|
| MD5 |
313a400d71b299b75c53c689dcbb4be5
|
|
| BLAKE2b-256 |
c3da5a19d207eb545a20796b6495a97a4529479cfa2b18416e7f2053e2d52afe
|
File details
Details for the file lognotify-0.0.1-py3-none-any.whl.
File metadata
- Download URL: lognotify-0.0.1-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b711f4d00124588b3672cabfcc644dec1ec4019c209d56fc8c2e7c362c7b86e0
|
|
| MD5 |
b9b2c76ca6db7e6a278a22b7164751c4
|
|
| BLAKE2b-256 |
a210e8a35f4c9c46d05430f91f43cffccb965b727516c39c9338f72869b47535
|