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).