def _make_log_task(self, level, msg, *args, **kwargs) -> Task:
if not self.isEnabledFor(level):<EOL><INDENT>if self._dummy_task is None:<EOL><INDENT>self._dummy_task = self.__make_dummy_task()<EOL><DEDENT>return self._dummy_task<EOL><DEDENT>if kwargs.get("<STR_LIT>", False):<EOL><INDENT>if not isinstance(kwargs["<STR_LIT>"], BaseException):<EOL><INDENT>kwargs["<STR_LIT>"] = sys.exc_info()<EOL><DEDENT><DEDENT>coro = self._log(  <EOL>level, msg, *args, caller=self.findCaller(False), **kwargs<EOL>)<EOL>return self.loop.create_task(coro)<EOL>
Creates an asyncio.Task for a msg if logging is enabled for level.
Returns a dummy task otherwise.