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", text_back="black", letter_back="white", text_case="title", letter_case="upper")
Install
With PyPi
pip install lognotify
With Source
git clone https://github.com/411Gamer/lognotify.git
cd lognotify
python3 setup.py install
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.2.tar.gz
(15.1 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.2-py3-none-any.whl
(15.4 kB
view details)
File details
Details for the file lognotify-0.0.2.tar.gz.
File metadata
- Download URL: lognotify-0.0.2.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b94cb0a01f3eb31ac5e5050324c705db8e6cb5414702e2a39298277ccc289470
|
|
| MD5 |
f0ba83d313f55a9e1c45a73d107f25fe
|
|
| BLAKE2b-256 |
003312962a0c3797e8b125485a8320f3bb153ac44055bb9ad4e7d19f2559b2bc
|
File details
Details for the file lognotify-0.0.2-py3-none-any.whl.
File metadata
- Download URL: lognotify-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67d428dfab33d1e45408b836a7518516553affa7606ef556345355fdcd85c642
|
|
| MD5 |
3f28874fd1b5c2ab0873f1785d9a92eb
|
|
| BLAKE2b-256 |
56f339bb5c779df2d411f64ebc0485ac2767965f73dbc52c9240a88c2822658f
|