Your IP : 216.73.216.61
��Y � @ sD d Z d d l m Z d d l Z d g Z d Z e d
d � Z d S)z�
raven.conf
~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
� )�absolute_importN�
setup_logging�raven�gunicorn�south�
sentry.errors�django.requestc C sx t j � } | j t t | j � k r+ d S| j | � x9 | D]1 } t j | � } d | _ | j t j � � q? Wd S)a�
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.
FT) �logging� getLogger� __class__�map�type�handlers�
addHandler� propagate�
StreamHandler)�handler�exclude�logger�logger_name� r �D/opt/alt/python35/lib/python3.5/site-packages/raven/conf/__init__.pyr s
)r r r r r )�__doc__�
__future__r r �__all__ZEXCLUDE_LOGGER_DEFAULTSr r r r r �<module> s