Sound Alerts, Styled Tracebacks & Email 通知 — Ready for Production!
This is a production-ready error logging system designed for serious Python CLI apps and automation tools.
It delivers instant feedback, ensuring you never miss a bug.
| Feature | Status |
|---|---|
| 🎨 Styled Terminal Logs | ✅ Included |
| ⚡ Auto Traceback Hooking | ✅ Included |
| 🔊 Sound Alerts for Errors | ✅ Included |
| 🗑️ Rotating File Logging | ✅ Included |
| 📧 Email Error 通知 | ✅ Optional |
This system is crafted for developers who need:
- Instant error detection (sound + styled logs)
- Auto traceback logging (no manual setup)
- Robust file logging with daily rotation
- Optional email alerts for critical failures
- Seamless integration into CLI tools, AI apps, automation bots, and more.
- Clone or download this repository.
- Install required dependencies:
pip install playsound rich - Adjust SMTP settings for email alerts (if needed).
from cli_logger_with_alerts import attach_global_traceback, launch_loader
attach_global_traceback() # Auto-hook global exception logger
launch_loader() # Your CLI tool’s main functionUnlike basic loggers, this system:
- Plays real sound alerts for instant feedback
- Shows beautiful, colored tracebacks in terminal
- Logs errors automatically to both console & files
- Works out-of-the-box for CLI apps, bots, and automation tools
- Feel free to open an Issue or start a Discussion on GitHub.
💌 Pro Tip: Enable email alerts by configuring SMTP settings in
email_utils.py
🚀 Ready to improve your
CLI debugging?
💡 Found this useful? Give it a ⭐ and share with your
Python friends!
🖂 Contact me any help
MIT — Free to use, modify, and enhance in your own projects.