Class DynamicLoggerHostBuilderExtensions
Inheritance
System.Object
DynamicLoggerHostBuilderExtensions
Namespace: Steeltoe.Extensions.Logging
Assembly: Steeltoe.Extensions.Logging.DynamicLogger.dll
Syntax
public static class DynamicLoggerHostBuilderExtensions : object
Methods
| Edit this page View SourceAddDynamicLogging(IHostBuilder)
Adds Dynamic Console Logging to your application. Removes ConsoleLoggerProvider if found (to prevent duplicate console log entries)
Also calls ILoggingBuilder.AddConfiguration() if not previously called.
Declaration
public static IHostBuilder AddDynamicLogging(this IHostBuilder hostBuilder)
Parameters
Type | Name | Description |
---|---|---|
IHostBuilder | hostBuilder | Your HostBuilder |
Returns
Type | Description |
---|---|
IHostBuilder |