diff options
Diffstat (limited to 'docs/integrations/logbook.rst')
-rw-r--r-- | docs/integrations/logbook.rst | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/docs/integrations/logbook.rst b/docs/integrations/logbook.rst deleted file mode 100644 index 8a2811e..0000000 --- a/docs/integrations/logbook.rst +++ /dev/null @@ -1,38 +0,0 @@ -Logbook -======= - -Installation ------------- - -If you haven't already, start by downloading Raven. The easiest way is -with *pip*:: - - pip install raven --upgrade - -Setup ------ -Raven provides a `logbook <http://logbook.pocoo.org>`_ handler which will pipe -messages to Sentry. - -First you'll need to configure a handler:: - - from raven.handlers.logbook import SentryHandler - - # Manually specify a client - client = Client(...) - handler = SentryHandler(client) - -You can also automatically configure the default client with a DSN:: - - # Configure the default client - handler = SentryHandler('___DSN___') - -Finally, bind your handler to your context:: - - from raven.handlers.logbook import SentryHandler - - client = Client(...) - sentry_handler = SentryHandler(client) - with sentry_handler.applicationbound(): - # everything logged here will go to sentry. - ... |