Class BootstrapLoggerServiceCollectionExtensions
Inheritance
System.Object
BootstrapLoggerServiceCollectionExtensions
Namespace: Steeltoe.Common.Logging
Assembly: Steeltoe.Common.Logging.dll
Syntax
public static class BootstrapLoggerServiceCollectionExtensions : object
Methods
| Edit this page View SourceUpgradeBootstrapLoggerFactory(IServiceCollection, BootstrapLoggerFactory)
Registers a hosted service that upgrades the loggers inside the specified bootstrap logger factory with new instances from the service container.
Declaration
public static IServiceCollection UpgradeBootstrapLoggerFactory(this IServiceCollection services, BootstrapLoggerFactory bootstrapLoggerFactory)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The |
BootstrapLoggerFactory | bootstrapLoggerFactory | The bootstrap logger factory whose loggers to upgrade once the app has started. |
Returns
Type | Description |
---|---|
IServiceCollection | The incoming |