我想为我的应用程序编写调试日志文件。
我不想使用NuGet,因为我已经安装了log4net
并且它引起了问题。
我想要编写一个简单的.log文件,以便我可以通过进程添加内容。
我需要像这样的东西:
System.IO.File.WriteAllText(path + ".log", "<some text>,");
// some lines of code here
System.IO.File.WriteAllText(path + ".log", "<more text>");
当我打开日志文件时,我希望看到:
<some text>,<more text>
。