You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And the Startup.cs like this: loggerFactory.AddFile(Configuration.GetSection("Logging"));
I'm trying really simple from a controller: _logger.LogDebug("TestController");
But the log is not in the file. If I change
_logger.LogDebug("TestController") to _logger.LogInformation("TestController"); the log shows in the log file as expected.
What I'm doing wrong?
Thanks for your help.
The text was updated successfully, but these errors were encountered:
I'm a bit late to the party, but hopefully this will help someone else.
What I just discovered is that the config that comes with ASP.Net Core apps does limit the output. This is sort of undercommunicated, and contrary to some of the information out there. In any case, if you have the below config somewhere (appsettings.Development.json?) it makes it impossible to increase the verbosity using the parameter passed to AddFile.
Hi,
I'm trying the extension, and it's working great, but I can't get Debug Levels logged.
I've settled up the app.settings like this:
And the Startup.cs like this:
loggerFactory.AddFile(Configuration.GetSection("Logging"));
I'm trying really simple from a controller:
_logger.LogDebug("TestController");
But the log is not in the file. If I change
_logger.LogDebug("TestController") to _logger.LogInformation("TestController"); the log shows in the log file as expected.
What I'm doing wrong?
Thanks for your help.
The text was updated successfully, but these errors were encountered: