Exemplo n.º 1
0
def tracemessage(klass):
    '''信息记录入日志'''
    if GlobalConfig.IsDebug:
        logger=Logger()
        logger.tracelog(klass.__dict__['__module__'])
Exemplo n.º 2
0
def traceMessage(method, args, modulename):
    '''信息记录入日志'''
    if GlobalConfig.IsDebug:
        logger = Logger()
        logger.tracelog(modulename + "." + method.__name__ +
                        " was invoked and parameters are " + str(args))