Python 输出 log 到文件的方法
摘要:
import loggingfrom logging.handlers import RotatingFileHandler module_name = "test_module" Rthandler = RotatingFileHandler("/var/lib/test_log/%s.log" % (module_name), maxBytes=10 * 1024 * 1024, ba... 阅读全文
posted @ 2019-07-12 16:26 liujx2019 阅读(1800) 评论(0) 推荐(0)