Skip to main content

A module for colorful console logging

Project description

Lognotify — module for colorful logging

Supported features

Predefined log levels:

  • info or note — 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, note, warning, error, debug, critical, custom

print(info(text="System is running"))
print(note(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.4.tar.gz (15.1 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.4-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lognotify-0.0.4.tar.gz
  • Upload date:
  • Size: 15.1 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.4.tar.gz
Algorithm Hash digest
SHA256 12819f8412002dc7d6d4cc3cde7c6dfa1d3c5ed7959d325eb29320e9f448a059
MD5 b930a6cb4df2ba1292cdf4946480479f
BLAKE2b-256 5967b073acd2a5f35ba85093f661c3d8a0ac7a3db40f85dc235372aff1f8c8a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lognotify-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8696000d0df647c9a5e9d728248b3f0c6826f48f5acf41d809ce03d540d511ae
MD5 f5eb6559fcb7c9c140cd482c76ea0a73
BLAKE2b-256 2a7e729c58733a79ddb0662c6431d652caa9c119c375b53b273ddb424db8eca0

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