def METHOD_NAME(self) -> logging.Logger:
    logger = logging.getLogger(__name__)
    logger.setLevel(self.loglevel)
    handler = logging.StreamHandler(stream=sys.stdout)
    formatter = LoggingFormatter(fmt="{message}", style="{", color=self.logcolor)
    handler.setFormatter(formatter)
    logger.addHandler(handler)
    basicConfig(
        stream=sys.stdout,
        # indent output of the StreamlinkLogger
        format=":::: {message}",
        # set the StreamlinkLogger's level to the same level as our logger
        level=self.loglevel,
        capture_warnings=True,
    )
    return logger