// Configure loggingLog.Logger = new LoggerConfiguration() .Enrich .FromLogContext() .Enrich .WithExceptionDetails() .WriteTo.Console(new JsonFormatter()) .CreateBootstrapLogger();builder.Host.UseSerilog((context, provider, configuration) => configuration .ApplyDefaultConfiguration(context, provider) .IgnoreHealthChecksPath());