logging日志输出文件报错NameError: name 'RotatingFileHandler' is not defined
解决from logging.handlers import RotatingFileHandler
![](https://img2020.cnblogs.com/blog/1973832/202003/1973832-20200321193600308-1386074569.png)
在logging同级找到handlers
官方文档:https://bugs.python.org/issue1436
满足不是幸福,平平淡淡才是真
解决from logging.handlers import RotatingFileHandler
![](https://img2020.cnblogs.com/blog/1973832/202003/1973832-20200321193600308-1386074569.png)
在logging同级找到handlers
官方文档:https://bugs.python.org/issue1436