def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def serialize(self, value, display=False):
        if value.lower() in log.COLORS:
            return encode(value.lower())
        return ""