errorfeed客户端和wsgi中间件
errorfeed的Python项目详细描述
errorfeed python客户端
欢迎使用errorfeed python客户机,这使得它易于集成 ErrorFeed跟踪python项目的异常。
要开始跟踪错误,
- 在errorfeed.com上创建帐户
- 创建新项目
- 获取API令牌
- 向wsgi中间件添加errorfeed,或者直接使用它。
安装
errorfeed在pypi中:
# easy_install errorfeed
或
# pip install errorfeed
直接使用客户端
以下是开始的方法:
>>> import ErrorFeed
>>> errorfeed_client = ErrorFeed.ErrorFeedClient(
... api_token='-- YOUR ACCOUNT TOKEN --',
... environment='development-experiment', tags=['documentation-test'])
>>> print errorfeed_client
<ErrorFeed.ErrorFeedClient object at 0x10bcfbb90>
>>> try:
... oops = 1 / 0
... except:
... errorfeed_client.handle_exception()
...
然后您可以使用wsgi中间件:
>>> app = ErrorFeedMiddleware(app, errorfeed_client)
兼容性
这个errorfeed python客户端与python 2.7和3.x以及errorfeed api v1兼容。
许可证
版权所有2015-2018 errorfeed。保留所有权利。
此软件是在apache许可2.0版下授权的。
有关详细信息,请参见许可证。
获取帮助
把你的问题发电子邮件给support@errorfeed.com。