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.5.tar.gz
(43.4 kB
view details)
Built Distribution
File details
Details for the file betterLogger-1.5.tar.gz
.
File metadata
- Download URL: betterLogger-1.5.tar.gz
- Upload date:
- Size: 43.4 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 | e88e372a816a4a12946445ce81c3abb0d1c62c2bcae28b150cc423a39d6d8579 |
|
MD5 | af108fae8786f993f2abe1e82d3d84fe |
|
BLAKE2b-256 | 57db4e906b9f21c568eec79f44a31c4616e47b1669739ff5beaaf60a01a22c03 |
File details
Details for the file betterLogger-1.5-py3-none-any.whl
.
File metadata
- Download URL: betterLogger-1.5-py3-none-any.whl
- Upload date:
- Size: 7.7 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 | 372b449f7bf5fe46445f54e543d0cb32f3afd6d06a87f9a5af6aa954d7e2a7c0 |
|
MD5 | 021aadb91d87cffb62e7c133d1454d40 |
|
BLAKE2b-256 | ff7d843b1c9b3d1b2496e2e16aa46c3fb3d18ebbb0b291f874391795aee563cd |