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...')

上一篇下一篇

猜你喜欢

热点阅读