Using ASP.Net Core 5.0 to roll out a Web API service which is running as it's own Windows Service. I'm trying to figure out how to use the Microsoft.Extensions.Logging to write logs to a file.
I would like to be able to specify the location of the logfile in the appsettings.json file that is rolled out with the application. I feel like I'm missing something.
Do I have to use another library with Microsoft.Extensions.Logging, like Serilog, in order to accomplish this? I've read through the link below and don't see anything about file logging.
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-5.0
I'm coming from a background where we used log4Net, but can't wrap my head around how to get Microsofot.Extensions.Logging to work.
I tried Serilog, but I run into an issue where when I'm debugging, it seems like the project always runs under IIS Express, even when I set the profile to the name of the project, and "Launch" to "Project".
What am I missing here?