Skip to main content

Django log handler to create issue on github automatically

Project description

Create an issue 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',
        'status:done',
    ]
}

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-github-log-0.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file django-github-log-0.1.tar.gz.

File metadata

File hashes

Hashes for django-github-log-0.1.tar.gz
Algorithm Hash digest
SHA256 e00b9b3c85be222a30bf79dc46da3c1d06704c241e37df41c0f058a4f1eb7660
MD5 7af2c0553a7166efc282e7f4406b5efe
BLAKE2b-256 5aedd2996112d7de83fec5b6817bdbdb084da2deeb37d58db2876f5a07c7d8a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page