I have an ASP.NET Core 2 web app I'm deploying to production, and need to enable logs to troubleshoot an error. I can't find anywhere in the docs as to the schema in the logger section of appsettings.json. Here's what I have there:
"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Debug",
"System": "Information",
"Microsoft": "Information" }
,"Console": { "IncludeScopes": "true" }
}
When I run the exe from the console, the log info is shown in the console, but entity framework is also logging so I can't see my own messages as the amount of output displayed is limited. Thus I need to output the logs to a file, say C:\temp\my.log. How can I configure ASP.NET Core 2 to do this?
Thanks in advance.