def format(self, record):
super(HtmlFormatter, self).format(record)<EOL>if record.funcName:<EOL><INDENT>record.funcName = escape_html(str(record.funcName))<EOL><DEDENT>if record.name:<EOL><INDENT>record.name = escape_html(str(record.name))<EOL><DEDENT>if record.msg:<EOL><INDENT>record.msg = escape_html(record.getMessage())<EOL><DEDENT>if self.use_emoji:<EOL><INDENT>if record.levelno == logging.DEBUG:<EOL><INDENT>record.levelname += '<STR_LIT:U+0020>' + EMOJI.WHITE_CIRCLE<EOL><DEDENT>elif record.levelno == logging.INFO:<EOL><INDENT>record.levelname += '<STR_LIT:U+0020>' + EMOJI.BLUE_CIRCLE<EOL><DEDENT>else:<EOL><INDENT>record.levelname += '<STR_LIT:U+0020>' + EMOJI.RED_CIRCLE<EOL><DEDENT><DEDENT>if hasattr(self, '<STR_LIT>'):<EOL><INDENT>return self._style.format(record)<EOL><DEDENT>else:<EOL><INDENT>return self._fmt % record.__dict__<EOL><DEDENT>
:param logging.LogRecord record: