Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django hookup #103

Open
interrogator opened this issue Jul 1, 2019 · 0 comments
Open

Django hookup #103

interrogator opened this issue Jul 1, 2019 · 0 comments

Comments

@interrogator
Copy link
Contributor

Here is an example settings.py excerpt:

Using with DjangoIts easy to integrate graypy with Djangos logging settings. Just add a new handler in your settings.py like this:

LOGGING = {
    ...

    'handlers': {
        'graypy': {
            'level': 'WARNING',
            'class': 'graypy.GELFHandler',
            'host': 'localhost',
            'port': 12201,
        },
    },

    'loggers': {
        'django.request': {
            'handlers': ['graypy'],
            'level': 'ERROR',
            'propagate': True,
        },
    },
}

Seems like we could do more in loggo in terms of integration here. could even have a loggo.django_setttings() which returns all the relevant stuff, or something. I will likely be doing more django in future, so this might be something I'll have time to explore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant