Skip to content

Django integrations docs should describe Django 1.3's LOGGING setting #193

@rassie

Description

@rassie

In Django 1.3, it was a lot easier for me to just configure a SentryHandler in settings.py's LOGGING:

LOGGING = {
    .....
    'handlers': {
        ....
        'sentry': {
            'level': 'DEBUG',
            'class': 'sentry.client.handlers.SentryHandler',
            'formatter': 'verbose'
        },
        ...
   },

Then, configure log levels and just use the lines:

import logging
logger = logging.getLogger(__name__)

wherever logging is needed.

This ticket is a suggestion that maybe this kind of configuration should be documented more explicitely (unless some bigger problems exist which I'm not aware of).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions