def logs(key): res = '' for i in srv.services: if i.serviceLog != '-1': # print(i.serviceLog) logRes = searchNprint(i.serviceLog, key) res = res + '-' * 10 + i.serviceName + '<br>' res = res + logRes + '<br>' # res = res + i.serviceLog + key + '<br>' return res
def logs2(path, key): return searchNprint(path, key)