currently I’m configuring my API service to use minimum LogLevel like this:
[other code...]
builder.Logging.SetMinimumLevel(LogLevel.Trace);
[other code...]
and also by specifying LogLevel from appsettings.json
I would like to change the LogLevel without restarting the application, maybe by using a dedicated endpoint like api/log/changelevel/trace
for example.
Is it possible to do that with built-in logger without using 3rd party loggers like log4net, serilog, nlog …. ?
Thank you