def METHOD_NAME(self, logger):
    color = self.pyload.config.get("log", "console_color") and colorlog
    if color:
        consoleform = colorlog.ColoredFormatter(
            self.LINEFORMAT_COLORED,
            datefmt=self.DATEFORMAT,
            log_colors=self.PRIMARY_COLORS,
            secondary_log_colors=self.SECONDARY_COLORS,
            style=self.LINESTYLE,
        )
    else:
        consoleform = logging.Formatter(
            self.LINEFORMAT, self.DATEFORMAT, self.LINESTYLE
        )
    consolehdlr = logging.StreamHandler(sys.stdout)
    consolehdlr.setFormatter(consoleform)
    logger.addHandler(consolehdlr)