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.3.tar.gz
(42.8 kB
view details)
Built Distribution
File details
Details for the file betterLogger-1.3.tar.gz
.
File metadata
- Download URL: betterLogger-1.3.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 | 890689559fa59cf0a52febe289cb05f563b292d8922414751378d3c1a48cbc9e |
|
MD5 | 149f952bccdaac5ca159ba083035ba7d |
|
BLAKE2b-256 | 154bb35172a89d11ee7a13324662429644cb5c90dfa92344328acb2e216ca3ee |
File details
Details for the file betterLogger-1.3-py3-none-any.whl
.
File metadata
- Download URL: betterLogger-1.3-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 | 2b94c99fe5e0f306fff62ca665667392453d4a2451c0195c5e83b4eb2252f65f |
|
MD5 | 8ec9fb4c7079c00c7320ce0bd41bcd4c |
|
BLAKE2b-256 | c5d4e6623f6752007addc6795ea889184094cfbe890f8522fd58ab2f6a42c39e |