A great colored logger!
Project description
BetterLogger
The best option for customizable and simplicity!
Config
All parts of the logger can be configured via environment variables.
Required
"APPNAME"
- defaults to"BetterLogger"
"APPAUTHOR"
- defaults to"BetterLogger"
"APPVERSION"
- defaults to"1.0"
"SHORT_APPNAME"
- defaults to"BL"
Logging Stuff
"LOG_LEVEL"
- defaults to10
"LOG_FORMAT"
- defaults to"%LEVEL_COLOR[%BOLD{level: <10}]%RESET %LEVEL_COLOR[%BOLD{class_name: <32}]%RESET %LEVEL_COLOR {message}%RESET"
Saving Logs
"LOG_SAVE_DIR"
- defaults toappdirs.user_log_dir(appname=appname, appauthor=appauthor, version=appversion)
"LOG_FILE_NAME_FORMAT"
- defaults to"{appname}_{year}-{day}-{hour}-{minute}_{number}.log"
"DISABLE_WELCOME_LOGGING"
-- BetterLogger sends some welcome text to introduce the program and to test the logger
- defaults to
False
Colors
BetterLogger comes with 9 colors, and 2 other text modifiers. There is black, red, green, yellow, blue, magenta, cyan,
white, bold and reset. These can be accessed in logging by using the %
sign and then writing the color name in all
caps and then using the reset code, e.g. e.g. %REDHelloWorld%Reset
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
betterLogger-1.2.tar.gz
(42.8 kB
view details)
Built Distribution
File details
Details for the file betterLogger-1.2.tar.gz
.
File metadata
- Download URL: betterLogger-1.2.tar.gz
- Upload date:
- Size: 42.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 813d8c8af9b68722895d18bef26b0c1ceb4b2d3e61e4defa2b66ac0bc3906922 |
|
MD5 | 4779e8f1da0113a179a56a8e94742fd1 |
|
BLAKE2b-256 | 3e54ca5aae86db041bbef4d9b41aa5a63841a29a04381024de386b9235c714de |
File details
Details for the file betterLogger-1.2-py3-none-any.whl
.
File metadata
- Download URL: betterLogger-1.2-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05999a3be3796459355fc80ce9758f94477c2f658d7c874a18fa2466c1adecab |
|
MD5 | b5d9e7600023636586637fbb867880b7 |
|
BLAKE2b-256 | 4de7d5ee98d809b760a22728176c1c2dcc15d78ffc30d62fa2c6fe0f8e8b66ff |