def METHOD_NAME(self, record: logging.LogRecord) -> str:
    """Return the colorized string for this record."""
    if not self._colorful:
        return "{}"
    if record.levelno >= logging.ERROR:
        return "\033[1;31m{}\033[0m"
    elif record.levelno >= logging.WARNING:
        return "\033[1;33m{}\033[0m"
    elif record.levelno >= logging.INFO:
        return "\033[1m{}\033[0m"
    return "\033[37m{}\033[0m"