A simple, styled logging library.
Reason this release was yanked:
Broken build
Project description
StyledLogger
A simple - yet beautiful logging library for Python 🐍 > 3.7
To use, simply do pip install styledlogger
Then you can import StyledLogger
from the package and initialize it.
Simple example using a logger:
>>> from styledlogger import StyledLogger
>>> logger = StyledLogger(name="Main") # Initialize a logger named "Main"
>>> logger.set_level(0) # Enable debug - default level is 1, which means every log type except debug
>>> logger.debug("This is just a test print")
9:55:30 :: DEBU @ Main - This is just a test print
>>> logger.error("Could not fetch url 'https://example.com'")
10:15:14 :: ERRO @ Main - Could not fetch url 'https://example.com'
>>> from styledlogger import StyleConfig
>>> logger.set_style(StyleConfig( text_format="(%time%) | %type% - %msg%", time_format='DD/MM/YYYY hh:mm' )) # Change the text format and time format in the logs
(22/04/2023 10:01) | WARN - CPU usage exceeding 90%
Check out the GitHub: https://github.com/SpLayzDK/StyledLogger Contact me at mail: alek@imalek.me
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
styledlogger-0.0.3.tar.gz
(5.0 kB
view details)
File details
Details for the file styledlogger-0.0.3.tar.gz
.
File metadata
- Download URL: styledlogger-0.0.3.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b79daf66b302ac70a017b8eb2338472ead09a4a970c90ae2745d54b87bc53631 |
|
MD5 | 09f5a923585b8a8a2853437450c85b82 |
|
BLAKE2b-256 | ac790a569c10e23aabfd1ae687cb5ee937b0b443b5b0748053f81eec6ce8c8b6 |