Django makes it really easy to set up server error reports 
<https://docs.djangoproject.com/en/3.1/howto/error-reporting/#server-errors> 
that are sent to email. It will notify the email addresses specified in the 
ADMINS 
setting <https://docs.djangoproject.com/en/3.1/ref/settings/#admins> 
"whenever your code raises an unhandled exception and results in an 
internal server error (strictly speaking, for any response with an HTTP 
status code of 500 or greater)".

Is it possible to easily send these server error reports somewhere other 
than email, like another type of handler for example? I basically want to 
send those exact same errors to something like Bugsnag instead of getting 
emailed out.

I have tried the django.requests 
<https://docs.djangoproject.com/en/3.1/topics/logging/#django-request> 
logger, but it didn't include all 5XX errors.
Do I also need to use the django.server 
<https://docs.djangoproject.com/en/3.1/topics/logging/#django-request> 
logger to handle the same errors as the built-in server error report?

Any insight here is much appreciated!

Gady

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/547ed149-a979-4a9b-a9e6-7a001b590fa0n%40googlegroups.com.

Reply via email to