A utility plugin, allowing you to set custom logging levels with colors and microsecond precision
Project description
BetterDebugging:
So im going to be honest with you, this is a SUPPPERRRR basic utility. It does not need to be a python package. Its only like 80 lines of code, however it is tremendously helpful, i use it in a bunch of my own projects, and now it needs to be publically available instead of locally available, so that other people can run my code.
With that being said, here is the 'Extensive' list of features.
init(level:LogLevel, logMs:boolean=True, logSender:boolean=True)
- Creates the log class
- You should note, the level set is the lowest level it will output. I.e. if the level is trace, all info will be shown, if the level is error, only error & critical logs will be shown.
Log.c(msg:str)
- What is it? : Critical
- Where do i use it? : Pretty much whenever something will cause a crash
- Colors? : Red Foreground, White Background
Log.e(msg:str)
- What is it? : Error
- Where do i use it? : Whenever something has gone noteably wrong, that will cause a problem left unattended (i.e, the exception on a try catch)
- Colors? : Red Foreground, Black Background
Log.w(msg:str)
- What is it? : Warn
- Where do i use it? : Whenever something Could go wrong, i.e. a function has returned undefined where it usually wouldn't
- Colors? : Yellow Foreground, Black Background
Log.i(msg:str)
- What is it? : Info
- Where do i use it? : whenever you just want info about the programs running
- Colors? : Foreground Green, Black Background
Log.d(msg:str)
- What is it? : Debug
- Where do i use it? : Pretty much whenever something will cause a crash
- Colors? : Blue Foreground, Black Background
Log.t(msg:str)
- What is it? : Trace
- Where do i use it? : When you want to be overly anal about tracking a value as the program goes on.
- Colors? : Cyan Foreground, Black Background
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file betterdebugging-1.0.5.tar.gz.
File metadata
- Download URL: betterdebugging-1.0.5.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e1f2a0e84807e945ab831b86a91bf2debb78e011bccd5ecf8ca9abdc9a52e42
|
|
| MD5 |
900084a6c00a696d1ae5d0d64755ee16
|
|
| BLAKE2b-256 |
99d3969646bfaef05382c32eca6f3137f90867dc6f74452eb8b345c977453786
|
File details
Details for the file betterdebugging-1.0.5-py3-none-any.whl.
File metadata
- Download URL: betterdebugging-1.0.5-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57ef50749bf8ea115d3bdc8d02b4a4b8e2e42b25240d61f7f3c6a748c062448f
|
|
| MD5 |
561fb16b79c885af8f9c3fed8165c1dc
|
|
| BLAKE2b-256 |
7fffd95cd17dd80c34c2258176e9d15572fdb0874c5207979ab87bd2a8d3bcea
|