是否有一个项目可以在 Google App Engine 上记录对 Django 的请求中的错误?到数据存储区(如 django-db-log 或 django.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.
关于python - 使用 Google App Engine 上的 Django 将错误记录到数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2459246/