当前位置: 首页>>代码示例>>Python>>正文


Python DebugLog.init_log方法代码示例

本文整理汇总了Python中utils.DebugLog.init_log方法的典型用法代码示例。如果您正苦于以下问题:Python DebugLog.init_log方法的具体用法?Python DebugLog.init_log怎么用?Python DebugLog.init_log使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在utils.DebugLog的用法示例。


在下文中一共展示了DebugLog.init_log方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: testVdCommCenterStart

# 需要导入模块: from utils import DebugLog [as 别名]
# 或者: from utils.DebugLog import init_log [as 别名]
 def testVdCommCenterStart(self):
     DebugLog.init_log(logfile=True)
     DebugLog.loglevel1 = True
     print "In testVdCommCenterStart"
     inst_vdcommcen = VdCommCenter()
     
     inst_vdcommcen.sendDelayedMessage("1234:_,test12345")
     inst_vdcommcen.sendDelayedMessage("abcd:_,testabcd")
     inst_vdcommcen.sendDelayedMessage("[email protected]#$:_,[email protected]#$")
     
     
     inst_vdcommcen.start()
开发者ID:xhan-shannon,项目名称:SystemControlView,代码行数:14,代码来源:VdCommCenterTest.py

示例2: Test

# 需要导入模块: from utils import DebugLog [as 别名]
# 或者: from utils.DebugLog import init_log [as 别名]
from base.vdcommcnt import VdCommCenter



class Test(unittest.TestCase):


#     def testConstructor(self):
#         inst_vdcommcen = VdCommCenter()
#         
#         print "just test unittest for vdcommcenter "
#         #self.assertIn(member, container, msg)

    def testVdCommCenterStart(self):
        DebugLog.init_log(logfile=True)
        DebugLog.loglevel1 = True
        print "In testVdCommCenterStart"
        inst_vdcommcen = VdCommCenter()
        
        inst_vdcommcen.sendDelayedMessage("1234:_,test12345")
        inst_vdcommcen.sendDelayedMessage("abcd:_,testabcd")
        inst_vdcommcen.sendDelayedMessage("[email protected]#$:_,[email protected]#$")
        
        
        inst_vdcommcen.start()
        

if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testConstructor']
    DebugLog.init_log(logfile=True)
    unittest.main()
开发者ID:xhan-shannon,项目名称:SystemControlView,代码行数:33,代码来源:VdCommCenterTest.py

示例3: hello_callback

# 需要导入模块: from utils import DebugLog [as 别名]
# 或者: from utils.DebugLog import init_log [as 别名]
from threading import Thread
import time


from Tkinter import Tk, Button
from base.vdcommcnt import VdCommCenter
from utils import DebugLog
from engine.helloeng import HelloEng
from ui.VdApp import VdApp
import ConfigParser
import os
from utils.ErrorHandler import ConfigFileError
from controller.SvrController import SvrController
from model.dataentity import DataEntity

DebugLog.init_log(True, True)
DebugLog.loglevel1 = True

vdCommCenter_inst = VdCommCenter(passive_mode=False)
appl = None


def hello_callback(param):
    DebugLog.debug_print_level1("in hello callback")
    if isinstance(param, list):
        print param[0]


def hello_dealer(param):
    DebugLog.debug_print_level1("in hello dealer")
    if isinstance(param, list):
开发者ID:xhan-shannon,项目名称:SystemControlView,代码行数:33,代码来源:vdt.py


注:本文中的utils.DebugLog.init_log方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。