Skip to main content

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:

image

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.5.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ilyxalogger-1.5.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file ilyxalogger-1.5.0.tar.gz.

File metadata

  • Download URL: ilyxalogger-1.5.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for ilyxalogger-1.5.0.tar.gz
Algorithm Hash digest
SHA256 b6dfacb86dce1bbcfa0c24a910789dc93a3ac7a44b3e7750765ca9c95eb12041
MD5 53923ec8b4481a10924285c9d0cffb3f
BLAKE2b-256 f901fa19bf730cbbc7582bf566e1cc5c24d25299e9d33c20f1fd2745a108bb93

See more details on using hashes here.

File details

Details for the file ilyxalogger-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: ilyxalogger-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for ilyxalogger-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 410f2d7fd725bf6d03f9fd1c7d9968283d4eaad301eda35fcd6bde7a6f93cf47
MD5 17e6c565f1952348498eedc96d70dc8b
BLAKE2b-256 c487fffd7e03d319a804f93b235a5f6d9f43c87cbf74fd40d57ada9e7581af63

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page