A lightweight Python logging utility with colorful console output.
Project description
Debug Logger
A lightweight Python logging utility with colorful console output.
Includes timestamped log levels (INFO, DEBUG, WARNING, ERROR, SUCCESS) for easy debugging in the terminal.
Features
- Colored log levels (green, cyan, yellow, red, magenta)
- 12-hour timestamp format
- File and line number shown in readable format (e.g.
[in main.py at line 10]) - Simple static methods for each log type
- Test function to preview all colors
Installation
Clone the repository:
git clone https://github.com/Bhargavxyz738/debug.git
And just import it using:
from debug import Debug
Usage
from debug import Debug
Debug.info("Program started")
Debug.debug("Loop iteration 1")
Debug.warn("This might be risky")
Debug.err("Something went wrong!")
Debug.succ("All good now")
Output Example
[08:20:01 PM INFO] [in test_debug.py at line 5] Program started
[08:20:01 PM DEBUG] [in test_debug.py at line 6] Loop iteration 1
[08:20:01 PM WARNING] [in test_debug.py at line 7] This might be risky
[08:20:01 PM ERROR] [in test_debug.py at line 8] Something went wrong!
[08:20:01 PM SUCCESS] [in test_debug.py at line 9] All good now
Preview
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 debugger_log-0.1.0-py3-none-any.whl.
File metadata
- Download URL: debugger_log-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f46cdc172d1f77064b0929a43b846ad85209afc48d8e28b867f627e80dfaca71
|
|
| MD5 |
bc1d86ed59f99ed50ac1c6f33d7b3e74
|
|
| BLAKE2b-256 |
f8125066254e4690dce1629342ee15dbe9545c0ec3740e6a78bff0e05d7c0e15
|