NLog在一段时间后停止运行

本文关键字:运行 一段时间 NLog | 更新日期: 2023-09-27 18:28:25

我在Windows上的.NET 4.5 C#项目中使用NLog 4.2.2。

一段时间后(例如12小时),NLog停止向日志文件写入消息。如果我启用CLR异常,每当代码调用NLog发出消息时,我都会得到以下异常:

A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll
Additional information: Path cannot be the empty string or all whitespace.

stacktrace只提到System.IO.Directory.CreateDirectory(String path)

以下是我正在使用的NLog配置文件:https://gist.github.com/dictoon/2cb39c9d1da52a651ac3

有人亲眼目睹过吗?

NLog在一段时间后停止运行

NLog开发人员已经确认这是一个NLog错误:https://github.com/NLog/NLog/issues/1120