开发者

Email notifications of exceptions happening in a Python app?

开发者 https://www.devze.com 2023-01-01 05:49 出处:网络
UPDATE: This is a Django web app Hi folks, I want to set up email notifications when there is an error happening in my application. In ruby, there is a very elegant solution called ExceptionNotifier,

UPDATE: This is a Django web app

Hi folks, I want to set up email notifications when there is an error happening in my application. In ruby, there is a very elegant solution called ExceptionNotifier, which wraps around the exception handler and uses the built-in mailer to send an email.

What is the best way of doing this in Python? I know that this is a very common issue, so would love for any开发者_Go百科 tips that you folks can share!

PS: Code samples, pointers to modules would be AWESOME! Thanks!


(I'm guessing you're talking about a web app here, because ExceptionNotifier is a Rails plugin...)

A Python web app using which framework? I know there's Django-hoptoad, which is actually a step above the ExecptionNotifier of Ruby, using ThoughtBot's Hoptoad.

But that's just a guess that you're using Django, which you might not be...

Similarly, Pylons (and by extension, Turbogears 2, I guess), has configuration options for error emails

0

精彩评论

暂无评论...
验证码 换一张
取 消