steeltoe

How to set Steeltoe Dynamic Logging works with 3rd party loggers as Serilog?

我怕爱的太早我们不能终老 提交于 2019-12-10 19:00:49
问题 I have ASP.NET Core 2.1 app in Pivotal Cloud Foundry where we want to be able to configure logging levels on fly. As logger provider we are using Serilog. Is it possible that Steeltoe Dynamic Logging works properly with 3rd party loggers and how? Here is what I tried: In Program.cs: public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseCloudFoundryHosting() .ConfigureLogging((builderContext, loggingBuilder) => { loggingBuilder