{ "html": "
If you haven’t already, start by downloading Raven. The easiest way is\nwith pip:
\npip install raven --upgrade\n
The most basic use for raven is to record one specific error that occurs:
\nfrom raven import Client\n\nclient = Client('___DSN___')\n\ntry:\n 1 / 0\nexcept ZeroDivisionError:\n client.captureException()\n
To report an arbitrary event you can use the\ncapture()
method. This is the most low-level\nmethod available. In most cases you would want to use the\ncaptureMessage()
method instead however which\ndirectly reports a message:
client.captureMessage('Something went fundamentally wrong')\n