fix: 驱动器根路径兼容

This commit is contained in:
龙腾猫跃 committed 2026-05-12 15:12:32 +08:00
1 parent 347a51f9d4
commit d4af33f5be
5 files changed
+51 -45

No files matched your search

+1 -1
View File
@@ -314,7 +314,7 @@ public class FileLogger : BaseLogger, IDisposable {
Logger.Warn(ex, "整理日志文件失败");
}
// 新建 writer
writer = new StreamWriter(PathUtils.WithLongPath(Path.Combine(logFolder, $"{fileNamePrefix}1{fileNameSuffix}")), append: true) { AutoFlush = true };
writer = new StreamWriter(PathUtils.ForApi(Path.Combine(logFolder, $"{fileNamePrefix}1{fileNameSuffix}")), append: true) { AutoFlush = true };
}
/// <inheritdoc/>