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.1.0.tar.gz (3.0 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.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ilyxalogger-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b7f3ed37fcd403c3eb835690fe6f980f035673417a94b73f29e62ae603e0ea82
MD5 e8d2294b5133b03a0b7947c8b98cd496
BLAKE2b-256 86b7fe72584bf8117f893b96c9cd5955f596c3f2018b874f954492cd7c7ff3fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ilyxalogger-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b35b9878ccef334bf1f228afa92010726d2ddb8a2d89062563a10b59adf11ce
MD5 765c09074283c1e236d2e39fca139b94
BLAKE2b-256 6134d55ab622063fef04289c179206caf6d48794f7bbed9eec8f6f25662b6612

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