def METHOD_NAME(self, record) -> str:
    """Format the specified record as text."""
    record.color = self.colors.get(record.levelname, "")
    record.reset = Style.RESET_ALL
    return super().METHOD_NAME(record)