示例#1
0
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
示例#2
0
def logs2(path, key):
    return searchNprint(path, key)