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