2017年9月14日

python输出日志到文件(每天一个日志)

摘要: ``` import logging from logging.handlers import TimedRotatingFileHandler logger = logging.getLogger('simple_example') logger.setLevel(logging.INFO) ch = TimedRotatingFileHandler("test.log", when='D', ... 阅读全文

posted @ 2017-09-14 17:53 荷楠仁 阅读(6759) 评论(0) 推荐(0) 编辑

导航