Esempio n. 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)
Esempio n. 2
0
def app_log(id, text, tag=0):
    return ct.app_log(id, text, tag)
Esempio n. 3
0
def app_log(id, text, tag=0, panel=''):
    return ct.app_log(id, text, tag, panel)
Esempio n. 4
0
def app_log(id, text, tag=0):
    return ct.app_log(id, text, tag)
Esempio n. 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
Esempio n. 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)
Esempio n. 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