def METHOD_NAME(self, conditions, log):
    # For a LogCondition object, trigger is:
    # Dict[column_family_name, List[Log]]. This explains why the condition
    # was triggered and for which column families.
    for cond in conditions:
        if re.search(cond.regex, log.get_message(), re.IGNORECASE):
            trigger = cond.get_trigger()
            if not trigger:
                trigger = {}
            if log.get_column_family() not in trigger:
                trigger[log.get_column_family()] = []
            trigger[log.get_column_family()].append(log)
            cond.set_trigger(trigger)