logging调试
2017-10-17 本文已影响0人
大奖神
logger = logging.getLogger('tcpserver')
print logger.getEffectiveLevel()
print type(logger)
logger.setLevel(10)
10,20,30,40,50 debug,info,warning,error,critical
logger.debug('debug...')
logger.info('info...')
logger.warning('warning...')