This is the simplest module for quick console log output.
Project description
Logger Library
What is this?
A simple module for color logging to the console/file
Installation
pip install ilyxalogger
Quick Guide
from ilyxalogger import Logger
Logger = Logger(colorize=True, write_to_logfile=True, log_filename="Logger.log")
Logger.log_info(message="Info")
Logger.log_success(message="Success")
Logger.log_warning(message="Warning")
Logger.log_error(message="Error", error=ValueError, solution="Potential solution")
Also if you add a symbol $, the framed text will be highlighted in color.
Example of output modification:
color = "\033[0;35m" # ANSII PURPLE
bg_color = "\033[41m" # ANSII RED, color for text in $..$
message="Some $warning$ message"
title="MyWarning"
log_warning(message=message, title=title, color=color, bg_color=bg_color)
Output example:
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
ilyxalogger-1.4.0.tar.gz
(3.3 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 ilyxalogger-1.4.0.tar.gz.
File metadata
- Download URL: ilyxalogger-1.4.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd244cbaa800fb86818160760c7e769487711bec20ea95b8b037523e87669ef3
|
|
| MD5 |
6091213e6ad88a92444ef5f4e4a958f4
|
|
| BLAKE2b-256 |
811a1b33e8af182e70a4c719287ed1a7468354673b2f9b2baa1fe1c91059c88c
|
File details
Details for the file ilyxalogger-1.4.0-py3-none-any.whl.
File metadata
- Download URL: ilyxalogger-1.4.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
710ff14817c7f6990199ef70d1af501e71e0a9ecaca532f683c1fdc4031d5112
|
|
| MD5 |
c12bd723eb3cbe513b3fbd697a63ff93
|
|
| BLAKE2b-256 |
24db706576807a96658fe9367acc5825257a57e568916f7fc32d11b98288baed
|