Skip to main content

Logstyle is simply lightweight, colorful and customizable logging library

Project description

logstyle

Getting started

Logstyle was developed for simplified usage like in below examples:

  • Create your own CustomLog instance
custom_logger = CustomLog("MyLogger")
  • Now you can try it using different styles and colors like below:
    • Box style logs:
    custom_logger.box_log("This is a box log example.", CustomLog.COLOR_GREEN)
    
    • Title style logs:
    custom_logger.title_log("Title Log", "This is a title log example.", CustomLog.COLOR_BLUE)
    
    • JSON style logs:
     custom_logger.json_log("JSON Log", "This is a JSON log example.", {"key": "value"}, CustomLog.COLOR_AMBER)
    
    • YAML style logs:
    custom_logger.yaml_log("YAML Log", "This is a YAML log example.", {"key": "value"}, CustomLog.COLOR_RED)
    

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

logstyle-1.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

logstyle-1.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file logstyle-1.0.1.tar.gz.

File metadata

  • Download URL: logstyle-1.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for logstyle-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7cc1529a73820e71f25658a7e3df129c5bbc13269e450f6055640cfb1ac941d0
MD5 4e94a32e51b2cdfc28fc3d27851ff8e3
BLAKE2b-256 2eb95c51775ae0fd3f401a30167f3342e35f1ea082249e8e3b113a458c3c9c60

See more details on using hashes here.

File details

Details for the file logstyle-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: logstyle-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for logstyle-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 125b31077e17f7dc83b8f23d7cd63c4ed6947b8a513e6e9ea6f1e74c3cb491d4
MD5 22e8a712883ebed3a27a6b9d3c838476
BLAKE2b-256 c3936655625b7fd6dbfc301a75952b701e71d13b9317399b0d21ef00ebd53bcb

See more details on using hashes here.

Supported by

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