code: def format(self, record):
          
          if hasattr(record, 'data'):
              return "%s. DEBUG DATA=%s" % (
                  logging.Formatter.format(self, record),
                  record.__dict__['data'])
          return logging.Formatter.format(self, record)
docs: Print out any 'extra' data provided in logs.