python天天一個log文件 TimedRotatingFileHandler

import logging.handlers log_file = 'test.log' time_handler = logging.handlers.TimedRotatingFileHandler(log_file, when='D', interval=1, backupCount=0) time_handler.suffix = '%Y-%m-%d.log' time_handle
相關文章
相關標籤/搜索