AlkantarClanX12
Current Path : /opt/alt/python27/lib/python2.7/site-packages/raven/conf/ |
Current File : //opt/alt/python27/lib/python2.7/site-packages/raven/conf/__init__.pyc |
� ��Yc @@ sA d Z d d l m Z d d l Z d g Z d Z e d � Z d S( s� raven.conf ~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. i ( t absolute_importNt setup_loggingt ravent gunicornt souths sentry.errorss django.requestc C@ sx t j � } | j t t | j � k r+ t S| j | � x9 | D]1 } t j | � } t | _ | j t j � � q? Wt S( s� Configures logging to pipe to Sentry. - ``exclude`` is a list of loggers that shouldn't go to Sentry. For a typical Python install: >>> from raven.handlers.logging import SentryHandler >>> client = Sentry(...) >>> setup_logging(SentryHandler(client)) Within Django: >>> from raven.contrib.django.handlers import SentryHandler >>> setup_logging(SentryHandler()) Returns a boolean based on if logging was configured or not. ( t loggingt getLoggert __class__t mapt typet handlerst Falset addHandlert propagatet StreamHandlert True( t handlert excludet loggert logger_name( ( sD /opt/alt/python27/lib/python2.7/site-packages/raven/conf/__init__.pyR s ( R R R s sentry.errorss django.request( t __doc__t __future__R R t __all__t EXCLUDE_LOGGER_DEFAULTSR ( ( ( sD /opt/alt/python27/lib/python2.7/site-packages/raven/conf/__init__.pyt <module> s