def __str__(self):
        return "\n".join([str(x) for x in self])
def serialize(self, value, display=False):
        if value.lower() in log.COLORS:
            return encode(value.lower())
        return ""