#coding:utf8
'''
Created on 2013-8-5

@author: xiaobei
'''
from kapi.logger import TCPLogger
import config as _cnf
import logging

#------------------------------------------------------------------------------ 

logger = TCPLogger(*_cnf.LOG_ADDR, size=_cnf.LOG_BUFFER, flush_level=logging.ERROR)


def recordErr(funcname, args, errcode):
    args_msg = '' 
    if isinstance(args, tuple):
        for i in xrange(len(args)):
            args_msg.append('%s' % str(args[i]))
    err_msg = 'function is %s, params is %s, err code is %s' % (funcname, args_msg, errcode)
    logger.error(err_msg) 


def main():
    pass
    
if __name__ == "__main__":
    main()
ff14a189cb37337306726db3ed1280bef0c9a302
<mask token>


def recordErr(funcname, args, errcode):
    args_msg = ''
    if isinstance(args, tuple):
        for i in xrange(len(args)):
            args_msg.append('%s' % str(args[i]))
    err_msg = 'function is %s, params is %s, err code is %s' % (funcname,
        args_msg, errcode)
    logger.error(err_msg)


def main():
    pass


<mask token>

<mask token>


def recordErr(funcname, args, errcode):
    args_msg = ''
    if isinstance(args, tuple):
        for i in xrange(len(args)):
            args_msg.append('%s' % str(args[i]))
    err_msg = 'function is %s, params is %s, err code is %s' % (funcname,
        args_msg, errcode)
    logger.error(err_msg)


def main():
    pass


if __name__ == '__main__':
    main()

<mask token>
logger = TCPLogger(*_cnf.LOG_ADDR, size=_cnf.LOG_BUFFER, flush_level=
    logging.ERROR)


def recordErr(funcname, args, errcode):
    args_msg = ''
    if isinstance(args, tuple):
        for i in xrange(len(args)):
            args_msg.append('%s' % str(args[i]))
    err_msg = 'function is %s, params is %s, err code is %s' % (funcname,
        args_msg, errcode)
    logger.error(err_msg)


def main():
    pass


if __name__ == '__main__':
    main()

<mask token>
from kapi.logger import TCPLogger
import config as _cnf
import logging
logger = TCPLogger(*_cnf.LOG_ADDR, size=_cnf.LOG_BUFFER, flush_level=
    logging.ERROR)


def recordErr(funcname, args, errcode):
    args_msg = ''
    if isinstance(args, tuple):
        for i in xrange(len(args)):
            args_msg.append('%s' % str(args[i]))
    err_msg = 'function is %s, params is %s, err code is %s' % (funcname,
        args_msg, errcode)
    logger.error(err_msg)


def main():
    pass


if __name__ == '__main__':
    main()

#coding:utf8
'''
Created on 2013-8-5

@author: xiaobei
'''
from kapi.logger import TCPLogger
import config as _cnf
import logging

#------------------------------------------------------------------------------ 

logger = TCPLogger(*_cnf.LOG_ADDR, size=_cnf.LOG_BUFFER, flush_level=logging.ERROR)


def recordErr(funcname, args, errcode):
    args_msg = '' 
    if isinstance(args, tuple):
        for i in xrange(len(args)):
            args_msg.append('%s' % str(args[i]))
    err_msg = 'function is %s, params is %s, err code is %s' % (funcname, args_msg, errcode)
    logger.error(err_msg) 


def main():
    pass
    
if __name__ == "__main__":
    main()