def Log(msg, level=xbmc.LOGNOTICE):
if level == xbmc.LOGDEBUG and verbLog:
level = xbmc.LOGNOTICE
if isinstance(msg, unicode):
msg = msg.encode('utf-8')
WriteLog(msg)
xbmc.log('[%s] %s' % (__plugin__, msg.__str__()), level)
评论列表
文章目录