Table of Contents

Class BootstrapLoggerServiceCollectionExtensions

Namespace
Steeltoe.Common.Logging
Assembly
Steeltoe.Common.Logging.dll
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 IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to.

bootstrapLoggerFactory BootstrapLoggerFactory

The bootstrap logger factory whose loggers to upgrade once the app has started.

Returns

IServiceCollection

The incoming services so that additional calls can be chained.