fix: 驱动器根路径兼容
This commit is contained in:
1 parent
347a51f9d4
commit
d4af33f5be
5 files changed
+51
-45
No files matched your search
@@ -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/>
|
||||
|
||||
Reference in new issue
Block a user