I managed to install the chat successfully, and I can see the clock interface web service on localhost and do
raven test http://jsifslkdjfklsdfjklsdjfklMYCODE
works, tests are displayed in the interface.
The problem is that I can not find any examples or documentation about what exactly I should use for my views and my settings.
I know what I need to add to my INSTALLED_APPS
'guard', 'Raven.contrib.django',
And I also added
SENTRY_DNS = 'http://jsifslkdjfklsdfjklsdjfklMYCODE'
The next two lines appear in the documents, but they do not say where they are going.
from raven.contrib.django.models import client client.captureException()
I tried in settings.py, but still I can't get my views to write anything. I also added this
LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'root': { 'level': 'WARNING', 'handlers': ['sentry'], }, 'formatters': { 'verbose': { 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s' }, }, 'handlers': { 'sentry': { 'level': 'ERROR', 'class': 'raven.contrib.django.handlers.SentryHandler', }, 'console': { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'verbose' } }, 'loggers': { 'django.db.backends': { 'level': 'ERROR', 'handlers': ['console'], 'propagate': False, }, 'raven': { 'level': 'DEBUG', 'handlers': ['console'], 'propagate': False, }, 'sentry.errors': { 'level': 'DEBUG', 'handlers': ['console'], 'propagate': False, }, }, }
And in my views I added this:
import logging logger = logging.getLogger() def home(request,template_name): logger.error('There was some crazy error lol', exc_info=True, extra={'request': request, }) return render_to_response(template_name,context, context_instance=RequestContext(request))
I have no other code related to registration other than what you see here. What am I missing?