public static IWebHostBuilder UseSerilogDynamicConsole( this IWebHostBuilder hostBuilder, Action <WebHostBuilderContext, LoggerConfiguration> configureLogger = null, bool preserveStaticLogger = false) => hostBuilder.AddDynamicSerilog(configureLogger, preserveStaticLogger);
public static IWebHostBuilder AddDynamicSerilog( this IWebHostBuilder hostBuilder, Action <WebHostBuilderContext, LoggerConfiguration> configureLogger, bool preserveStaticLogger, bool preserveDefaultConsole = false) => hostBuilder.AddDynamicSerilog(configureLogger, preserveDefaultConsole);