2014-02-25 48 views
1

我使用Sentry爲我的項目記錄異常,一切正常。Sentry如何自動發送除日誌以外的日誌?

但我不知道如何讓Sentry自動發送通知給我的電子郵件(例如gmail,v.v),當有異常時。

幫幫我。

# This is config setting: 
# For more information check Django's documentation: 
# https://docs.djangoproject.com/en/1.3/topics/email/?from=olddocs#e-mail-backends 

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' 

EMAIL_HOST = 'localhost' 
EMAIL_HOST_PASSWORD = '' 
EMAIL_HOST_USER = '' 
EMAIL_PORT = 25 
EMAIL_USE_TLS = False 

# The email address to send on behalf of 
SERVER_EMAIL = '[email protected]' 

回答

1

檢查崗哨設置

訪問http:///帳戶/設置/通知/

settings

附: Django通常會通過電子郵件發送到以「ADMIN」設置的地址

+0

嗨,兄弟,您推薦如何發送關於錯誤的電子郵件 - 來自哨兵,還是直接從django和芹菜? – aershov

+1

我更喜歡哨兵懈怠或者平庸 – glmvrml