Brian M. Hunt
Brian M. Hunt

Reputation: 83858

Log errors to database with Django on Google App Engine

Is there a project that can log errors in requests to Django on Google App Engine to the datastore (like django-db-log or django.crashlog)?

Thanks!

Upvotes: 1

Views: 578

Answers (3)

user103576
user103576

Reputation: 370

Use the built-in google.appengine.ext.ereporter module:

A logging handler that records information about unique exceptions.

'Unique' in this case is defined as a given (exception class, location) tuple. Unique exceptions are logged to the datastore with an example stacktrace and an approximate count of occurrences, grouped by day and application version.

A cron handler, in google.appengine.ext.ereporter.report_generator, constructs and emails a report based on the previous day's exceptions.

See also: Using the ereporter module for easy error reporting.

Upvotes: 3

Brian M. Hunt
Brian M. Hunt

Reputation: 83858

I've created a project Django-GAE-log to solve this issue. Thoughts and input are welcome!

Upvotes: 0

Matt Norris
Matt Norris

Reputation: 8836

  1. Check out Native Django on GAE. It's a non-relational port of Django to Google's App Engine.
  2. Another project, google-app-engine-django, looks like an intermediate "helper" to get you going, without the full port.

Upvotes: 1

Related Questions