Merge pull request #394 from xiekeyang/feature-panic-hook

Feature: Add Hook for Web Application Panic
This commit is contained in:
Stephen Day 2015-06-01 13:23:32 -07:00
commit 0d40913b9a
7 changed files with 223 additions and 2 deletions

View file

@ -4,6 +4,20 @@ log:
fields:
service: registry
environment: development
hooks:
- type: mail
disabled: true
levels:
- panic
options:
smtp:
addr: mail.example.com:25
username: mailuser
password: password
insecure: true
from: sender@example.com
to:
- errors@example.com
storage:
cache:
blobdescriptor: redis
@ -41,5 +55,5 @@ notifications:
timeout: 1s
threshold: 10
backoff: 1s
disabled: true
disabled: true