logging调试

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

你可能感兴趣的:(logging调试)