Are there any lightweight alternatives to django-sentry for error logging in a Django environment?
I used django-db-log earlier which now known as django-sentry. Some of the others I found were pretty much dead as they had no commits in the last two years almost.
Thanks.
Sentry being overkill and Djangodblog being deprecated, I rolled my own, cannibalising the necessary parts from both.
How it works is by catching the error signal. Then it uses Django’s inbuilt exception reporter to generate the fancy 500 error page that Django displays when debugging is enabled. We store this in the DB and render it in the admin console.
Here’s my implementation:
Model:
Admin:
Helper:
Init: