Back to Practical Aspnetcore

WebApplicationBuilder - Set logging minimum level

projects/minimal-hosting/web-application-builder-logging-set-minimum-level/README.md

latest507 B
Original Source

WebApplicationBuilder - Set logging minimum level

Use WebApplicationBuilder.Logging.SetMinimumLevel to set the minimum level of logging via code. In this sample we set the minimum logging to Trace.

You can read the implementation of WebApplication here and its sibling WebApplicationBuilder here