Python logging模块

默认logging函数输出的warning级别的日志。 #!/usr/bin/env python3 #-*- coding: utf-8 -*- import logging logging.debug('This is debug message') logging.info('This is info mess…