def METHOD_NAME(self, record: logging.LogRecord) -> str:
    if not record.exc_info:
        level = record.levelname.lower()
        msg = record.getMessage()
        if level in self.colors:
            prefix = click.style(f"{level}", **self.colors[level])
            msg = f"{prefix}: {msg}"
        return msg
    return super().METHOD_NAME(record)  # pragma: no cover