【发布时间】:2017-08-09 14:15:09
【问题描述】:
环境: 赢得 10 蟒蛇2.7 文件节拍 5.1.1
我的应用程序使用 Rotating 日志处理程序写入日志。当我启动 Filebeat 时,我开始从日志库中获取以下异常。
Traceback (most recent call last):
File “C:\Anaconda2\Lib\logging\handlers.py”, line 77, in emit
self.doRollover()
File “C:\Anaconda2\Lib\logging\handlers.py”, line 142, in
doRollover
os.rename(self.baseFilename, dfn)
WindowsError: [Error 183] Cannot create a file when that file already
exists
我该如何解决?
【问题讨论】:
-
如果没有minimal reproducible example,很难猜到。您能否设置一个最大字节值非常短的最小日志记录系统来重现该问题?
标签: python windows logging filebeat