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
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
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
ilyxalogger-1.0.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file ilyxalogger-1.0.0.tar.gz
.
File metadata
- Download URL: ilyxalogger-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d447cba3fbd78e85c6140223e0b462abc278a03f58e4551e32715f77f0f002c2 |
|
MD5 | d238163ce11d35865622711dc6b70df7 |
|
BLAKE2b-256 | cb3bfea35425ec1413621068f4670637b9d9c5ad24b22fb8fca877992a395ea3 |
File details
Details for the file ilyxalogger-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: ilyxalogger-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f3a9b72fdbeab657fe0a9421a2017f38f8cf2d367f455ed8a2dd211cf57b0f3 |
|
MD5 | d237834600331c6e2561e5e8d68a1f68 |
|
BLAKE2b-256 | daf3cf60bb8f73aa0dc412ab4189ec42b92cfd3a1935404ed63ba2fd465e052d |