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.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

logstyle-1.0.3-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

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