Skip to content

Latest commit

 

History

18 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

仓库 files navigation

🎧 Beautiful CLI Logger for Python (Better than default logging)

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.


Python License: MIT Made with ❤️

✨ Key Features — Why Developers Love This System

Feature Status
🎨 Styled Terminal Logs ✅ Included
⚡ Auto Traceback Hooking ✅ Included
🔊 Sound Alerts for Errors ✅ Included
🗑️ Rotating File Logging ✅ Included
📧 Email Error 通知 ✅ Optional

🚀 Why Use This?

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.

📦 Setup Instructions

  1. Clone or download this repository.
  2. Install required dependencies:
pip install playsound rich 
  1. Adjust SMTP settings for email alerts (if needed).

✅ Quick Start Example

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 function

💡 Why It’s Special

Unlike 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

💬 Questions? Contributions?

  • 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

📜 License

MIT — Free to use, modify, and enhance in your own projects.

关于

Advanced Python CLI Logger with sound alerts, rich tracebacks & email error notifications.

Topics

Resources

Stars

1 star

关注者

0 watching

复刻s

发布

贡献者

Languages