def format(self, record):
        """
        Format record with formatter.

        :param record: Record to format
        :return: Formatted record
        """
        if not hasattr(record, "type"):
            record.type = "   "
        return self._formatter.format(record)
def format ( self , record ) : if not hasattr ( record , "type" ) : record . type = "   " return self . _formatter . format ( record )
Format record with formatter.

        :param record: Record to format
        :return: Formatted record