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.2.0.tar.gz (3.1 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.2.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ilyxalogger-1.2.0.tar.gz
Algorithm Hash digest
SHA256 e712806034900614726d63cb7902650d4f4e9e97211568edb312b243de1dae1a
MD5 7118d8365ba4a52b957fd9ae31bb1bfe
BLAKE2b-256 1bc1bde3f50eb275f6450de0d644d115ec104dabe0c6d2b6843cf60754fe0632

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ilyxalogger-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c780f64b4ca2f3f8b8f308e76e410074d1b11bf644694970142b14b20f0b6475
MD5 db688b8bba9528d5e545cb2cce737648
BLAKE2b-256 a883f88296fa1465c7912d7e5ffcd1cd31ebbfd2a113b47304cce534a07e71b3

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