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
Release history Release notifications | RSS feed
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.0.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file logstyle-1.0.0.tar.gz
.
File metadata
- Download URL: logstyle-1.0.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c41540b488efd01efb4fbffe28a619ba1839301b10973d3c5563884a4755b74a |
|
MD5 | 64a97b167cbd7ee67c909c3a3ccba5b5 |
|
BLAKE2b-256 | 18871a92395b36d2b8663d6dfbba2698b3f72ac6003e37c049e978444655f582 |
File details
Details for the file logstyle-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: logstyle-1.0.0-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb6622465c45242acfd1bade3c48882b4f7c581f2d46a621246356c9639ecce1 |
|
MD5 | a8d9c55845232ef24638389e1834a6b9 |
|
BLAKE2b-256 | bfee88ca0feaa1319a63f0a2faafd6b1da779d384d43d6273c75cbb6905d4626 |