#!/user/bin/python #-*-coding:utf-8-*- def log_contrast(logs,client_ip,policy_id,parmkey,parmvalue): if (str(client_ip) in str(logs))and (str(policy_id) in str(logs)) and (str(parmkey) in str(logs)) and (str(parmvalue) in str(logs)): print(logs) return "true" else: return "false"