<filename>books/debugging/better_exceptions/test_better_exceptions_django/test_better_exceptions_django/fm.py
import logging

from better_exceptions import format_exception


class ExceptionFormatter(logging.Formatter):

    def formatException(self, ei):
        return format_exception(*ei)
