LoggingServiceCollectionExtensions.AddLogging LoggingServiceCollectionExtensions.AddLogging LoggingServiceCollectionExtensions.AddLogging Method

Definition

Overloads

AddLogging(IServiceCollection) AddLogging(IServiceCollection) AddLogging(IServiceCollection)

Adds logging services to the specified IServiceCollection.

AddLogging(IServiceCollection, Action<ILoggingBuilder>) AddLogging(IServiceCollection, Action<ILoggingBuilder>) AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Adds logging services to the specified IServiceCollection.

AddLogging(IServiceCollection) AddLogging(IServiceCollection) AddLogging(IServiceCollection)

Adds logging services to the specified IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddLogging (services As IServiceCollection) As IServiceCollection

Parameters

Returns

The IServiceCollection so that additional calls can be chained.

AddLogging(IServiceCollection, Action<ILoggingBuilder>) AddLogging(IServiceCollection, Action<ILoggingBuilder>) AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Adds logging services to the specified IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configure);
static member AddLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddLogging (services As IServiceCollection, configure As Action(Of ILoggingBuilder)) As IServiceCollection

Parameters

configure
Action<ILoggingBuilder>

The ILoggingBuilder configuration delegate.

Returns

The IServiceCollection so that additional calls can be chained.

Applies to