middleware.py

#

(c) Nelen & Schuurmans. GPL licensed, see LICENSE.txt

import logging


logger = logging.getLogger(__name__)
#

Middleware that logs exceptions.

class TracebackLoggingMiddleware(object):
#

See http://djangosnippets.org/snippets/421/.

To enable it, add lizard_ui.middleware.TracebackLoggingMiddleware to your setting.py's MIDDLEWARE_CLASSES.