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.3.0.tar.gz
(3.2 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.3.0.tar.gz.
File metadata
- Download URL: ilyxalogger-1.3.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
262d8295acc6a613edb1ec36837adebd9bce46c4b25b1c9dbc8569ddd42c87ec
|
|
| MD5 |
f93714debeda0dc61b1fe544d5967fcd
|
|
| BLAKE2b-256 |
8ff3317c3803dfb14b8c7135aa24190a604e263cc6236361bbbf278f1f0dee0a
|
File details
Details for the file ilyxalogger-1.3.0-py3-none-any.whl.
File metadata
- Download URL: ilyxalogger-1.3.0-py3-none-any.whl
- Upload date:
- Size: 3.4 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 |
7b463c8fbee60d301cb6d4b2ed551a1ad3719149b4b242f613d79264b1299144
|
|
| MD5 |
7a41d9cf0617d15d44a8813876811038
|
|
| BLAKE2b-256 |
73e63c96bc433ab75357e8ed66ca6cbffe51b5a0d67e788b610aaa94c7cdcd3f
|