Skip to main content

A module for colorful console logging

Project description

Lognotify — module for colorful logging

Supported features

Predefined log levels:

  • info — informational messages
  • warning — warnings
  • error — errors
  • debug — debugging messages
  • critical — critical errors
  • custom — custom log level

Formatting options:

  • Text and level (label) colors:
    • black, red, green, yellow, blue, magenta, cyan, white
    • Additional: light-*, dim-* (e.g., light-red, dim-blue)
  • Background colors:
    • Same as text colors
  • Text case options:
    • upper — ALL UPPERCASE
    • lower — all lowercase
    • capitalize — First letter uppercase
    • title — Each Word Capitalized
  • Works on Windows and Linux

Usage examples

from lognotify import info, warning, error, debug, critical, custom

print(info(text="System is running"))
print(warning(text="Potential issues ahead"))
print(error(text="An error occurred!"))
print(debug(text="Debugging info"))
print(critical(text="Critical failure!"))
print(custom(text="Custom log message", log_level="ALERT", text_color="magenta", letter_color="red", text_back="black", letter_back="white", text_case="title", letter_case="upper")

Install

With PyPi
pip install lognotify
With Source
git clone https://github.com/411Gamer/lognotify.git
cd lognotify
python3 setup.py install

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

lognotify-0.0.3.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

lognotify-0.0.3-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file lognotify-0.0.3.tar.gz.

File metadata

  • Download URL: lognotify-0.0.3.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for lognotify-0.0.3.tar.gz
Algorithm Hash digest
SHA256 57e1cd45f27387f0af6540e134d64e1b447490ff2db97c22c2c2d33ecd7220f3
MD5 e41de77ad0e1683415dbcc2b02b80cc2
BLAKE2b-256 34596a2aef7a2aa442a71d28e3bf8a0d852d2351a040c1e0498f133dbc4761ea

See more details on using hashes here.

File details

Details for the file lognotify-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: lognotify-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for lognotify-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dffea1ca65039adb7f20934a2881b58a24e1c7949a03dbde527f5a75ebfbc782
MD5 1cdb1a89bffa2cfb512f01533ad66159
BLAKE2b-256 a1d77955de2f4241f8c513c7b401a1842ef9a4b95d41953d7d1fe8cf45c128b4

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