https://github.com/bigmlcom/tornadotoad
provides integration of hoptoad's exception notification service into a tornado app
https://github.com/bigmlcom/tornadotoad
Last synced: 9 months ago
JSON representation
provides integration of hoptoad's exception notification service into a tornado app
- Host: GitHub
- URL: https://github.com/bigmlcom/tornadotoad
- Owner: bigmlcom
- License: mit
- Created: 2011-06-21T22:36:15.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-06-20T05:46:03.000Z (over 14 years ago)
- Last Synced: 2024-04-16T10:59:00.955Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 26
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- Changelog: CHANGELOG.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
==================
tornadotoad v 0.3
==================
tornadotoad allows one to integrate HoptoadApp.com's service to track exceptions
inside a tornadoapp. It can be used outside of a running tornado app, but having
tornado installed is one of the requirements. If there is an ioloop running, the
request will be asynchronous.
Basic Usage:
------------------
1) Specify the API key and environment. Usually done once before starting up the iolooop.
import tornadotoad
tornadotoad.register(api_key='your-api-key', environment='production')
2) Add the tornadotoad mixin to your RequestHandler.
import tornadotoad
class BaseHandler(tornadotoad.mixin.RequestHandler, tornado.web.RequestHandler):
pass
Everytime your application throws an error, the error details will be sent off asynchronously
to Hoptoad.
Send deploy notification
------------------
When hoptoad receives a deploy notification, it will clear all the errors for the environment
you have registered.
import tornadotoad
tornadotoad.register(api_key='your-api-key', environment='production')
client = tornadotoad.api.TornadoToad()
client.deploy()