<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _make_log_task(self, level, msg, *args, **kwargs) -> Task: """ Creates an asyncio.Task for a msg if logging is enabled for level. Returns a dummy task otherwise. """

        if not self.isEnabledFor(level):
            if self._dummy_task is None:
                self._dummy_task = self.__make_dummy_task()
            return self._dummy_task

        if kwargs.get("exc_info", False):
            if not isinstance(kwargs["exc_info"], BaseException):
                kwargs["exc_info"] = sys.exc_info()

        coro = self._log(  # type: ignore
            level, msg, *args, caller=self.findCaller(False), **kwargs
        )
        return self.loop.create_task(coro)