示例#1
0
def app_log(id, text, tag=0, panel=''):
    if type(text) is not str:
        raise ValueError('app_log() parameter "text" must be string')
    if tag != 0:
        print(
            'ERROR: app_log() parameter "tag" has no effect, but %d is given' %
            tag)
    return ct.app_log(id, text, tag, panel)
示例#2
0
def app_log(id, text, tag=0):
    return ct.app_log(id, text, tag)
示例#3
0
def app_log(id, text, tag=0, panel=''):
    return ct.app_log(id, text, tag, panel)
示例#4
0
def app_log(id, text, tag=0):
    return ct.app_log(id, text, tag)
示例#5
0
def app_log(id, text, tag=0):
    res = ct.app_log(id, text, tag)
    if id == LOG_CONSOLE_GET:
        return res.splitlines()
    else:
        return res
示例#6
0
def app_log(id, text, tag=0, panel=''):
    if type(text) is not str:
        raise ValueError('app_log() parameter "text" must be string')
    return ct.app_log(id, text, tag, panel)
示例#7
-1
def app_log(id, text, tag=0):
    res = ct.app_log(id, text, tag)
    if id==LOG_CONSOLE_GET:
        return res.splitlines()
    else:
        return res