def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def serialize(self, value, display=False):
        if value.lower() in log.COLORS:
            return encode(value.lower())
        return ""