Django log handler to create issue on github automatically
Project description
Create an issue group by error on github when django raises error
Installation
Add following settings dictionary in your settings.py (LABELS is optional)
GITHUB_LOG_SETTINGS = {
'USER': 'REPOSITORY-OWNER',
'REPO': 'REPOSITORY-NAME',
'TOKEN': 'GITHUB-API-TOKEN',
'LABELS': [
'priority:normal',
'type:error',
...
]
}
Add “github_log” in INSTALLED_APPS
Add logging handler in settings.Logging[‘handlers’]
'github': {
'level': 'ERROR',
'class': 'github_log.log.GitHubIssueHandler'
},
Finally, python manage.py syncdb
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-github-log-0.1.4.tar.gz
.
File metadata
- Download URL: django-github-log-0.1.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a9e2ac78c2bf626b3c0a02cbe627d366fadf83afb756bfc7fa4bd4eb740d9fe |
|
MD5 | 5b93a49905e0333698d2fad709af294d |
|
BLAKE2b-256 | 7c97fdcb4e2f53d3a648f7e553ef9eb51632107af2221c33c106e93cfad9141b |