Open anjoy8 opened 4 years ago
Sorry, after checking, I found that the log files were generated under the Bin folder. Before, they were all generated under the root directory of the file.
<appender name="ErrorLog" type="log4net.Appender.RollingFileAppender">
<file value="Log/"/>
...
Since 3.1.0
, log files have been generated into the bin folder instead of the current project directory.
Hi,huorswords,
My .netcore project was upgraded to the latest.net5.0, and I also upgraded to the latest version of Log4Net-related NuGet.
However, after testing, it could not be written to the log file during development, so I went back to the previous version and it was ok.
Here's how I configured it:
Program.cs
Log4net.config
Controller.cs
I don't know where the problem is, please help to put forward Suggestions, thank you very much!