(self, record)
Add attributes from the escape_codes dict and the record.
Add attributes from the escape_codes dict and the record.
Add attributes from the escape_codes dict and the record .
def __init__(self, record):
        """Add attributes from the escape_codes dict and the record."""
        self.is_tty = True
        self.additional_line_prefix = ""
        self.msg_cb = None
        record.name = record.name.ljust(30)

        self.__dict__.update(escape_codes)
        self.__dict__.update(record.__dict__)

        # Keep a reference to the original record so ``__getattr__`` can
        # access functions that are not in ``__dict__``
        self._record = record
def __init__ ( self , record ) : self . is_tty = True self . additional_line_prefix = "" self . msg_cb = None record . name = record . name . ljust ( 30 ) self . __dict__ . update ( escape_codes ) self . __dict__ . update ( record . __dict__ ) # Keep a reference to the original record so ``__getattr__`` can # access functions that are not in ``__dict__`` self . _record = record