python - 使用 Google App Engine 上的 Django 将错误记录到数据库

标签 python django google-app-engine logging error-handling

是否有一个项目可以在 Google App Engine 上记录对 Django 的请求中的错误?到数据存储区(如 django-db-logdjango.crashlog )?

谢谢!

最佳答案

使用内置的 google.appengine.ext.ereporter模块:

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.

另请参阅:Using the ereporter module for easy error reporting .

关于python - 使用 Google App Engine 上的 Django 将错误记录到数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2459246/

相关文章:

python - 计算对象列表中有多少对象与属性值的方面相似

Django模板timesince过滤器-限制

python - 在 django 模型中,如何检查 ManyToMany 字段中的值集的唯一性?

django - 扩展 django-registration RegisterForm 类的正确方法

sql - Google App Engine 中的免费 SQL

java - 太多方法引用 - 在 Android Studio 中使用 AppEngine SDK

python - 为多个 Python 文件编写单元测试

python - 获取当年第一天/最后一天的日期对象

Python GAE 上传到 Google Docs

python - 使用QAbstractTableModel(模型/ View )时如何将 "Select one..."添加到QComboBox?