# -*- coding:utf-8 -*- import os, sys, time from ssat_sdk.utils.LoggingUtil import printLog TAG = "UITree:" DEBUG = True INFO = True ERROR = True def debug(cls, fun, msg, enable): if DEBUG and enable: pstr = "Debug:" + TAG + cls + "[" + fun + "]" + msg printLog(pstr) def info(cls, fun, msg, enable): if INFO and enable: pstr = "Info:" + TAG + cls + "[" + fun + "]" + msg printLog(pstr) def error(cls, fun, msg, enable): if ERROR and enable: pstr = "Error:" + TAG + cls + "[" + fun + "]" + msg printLog(pstr)