Class BootstrapLoggerServiceCollectionExtensions
public static class BootstrapLoggerServiceCollectionExtensions
- Inheritance
-
BootstrapLoggerServiceCollectionExtensions
- Inherited Members
Methods
UpgradeBootstrapLoggerFactory(IServiceCollection, BootstrapLoggerFactory)
Registers a hosted service that upgrades the loggers inside the specified bootstrap logger factory with new instances from the service container.
public static IServiceCollection UpgradeBootstrapLoggerFactory(this IServiceCollection services, BootstrapLoggerFactory bootstrapLoggerFactory)
Parameters
services
IServiceCollectionThe Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to.
bootstrapLoggerFactory
BootstrapLoggerFactoryThe bootstrap logger factory whose loggers to upgrade once the app has started.
Returns
- IServiceCollection
The incoming
services
so that additional calls can be chained.