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