【发布时间】:2020-09-15 12:40:27
【问题描述】:
类似于question,但更具体地说,如何将 Python 调用的 C++ 标准重定向到日志文件?使用带有RotatingFileHandler 的python logging 模块创建并写入日志文件。目前使用 Python 2.7.x。
【问题讨论】:
-
写答案的时候,错过了python 2.7的部分……python 2.7已经死了。
标签: python python-2.7 logging file-descriptor