I have a .NET Core 3.0 console application. I have a Microsoft.Extensions.Logging logger and I'm building Microsoft.Extensions.Configuration using a command line arguments.
My question is "How can I set the log levels via command line arguments?"
I have a .NET Core 3.0 console application. I have a Microsoft.Extensions.Logging logger and I'm building Microsoft.Extensions.Configuration using a command line arguments.
My question is "How can I set the log levels via command line arguments?"
As pointed out in the Configuration in ASP.NET Core docs the arguments can be passed in one of the following ways:
Example: