Freigeben über


LoggingServiceCollectionExtensions.AddLogging Methode

Definition

Überlädt

AddLogging(IServiceCollection)

Fügt der angegebenen IServiceCollection Protokollierungsdienste hinzu.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Fügt der angegebenen IServiceCollection Protokollierungsdienste hinzu.

AddLogging(IServiceCollection)

Quelle:
LoggingServiceCollectionExtensions.cs
Quelle:
LoggingServiceCollectionExtensions.cs
Quelle:
LoggingServiceCollectionExtensions.cs
Quelle:
LoggingServiceCollectionExtensions.cs
Quelle:
LoggingServiceCollectionExtensions.cs

Fügt der angegebenen IServiceCollection Protokollierungsdienste hinzu.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddLogging(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
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

Parameter

services
IServiceCollection

Die IServiceCollection, der Dienste hinzugefügt werden sollen.

Gibt zurück

Die IServiceCollection-Schnittstelle zur Verkettung weiterer Aufrufe.

Gilt für:

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Quelle:
LoggingServiceCollectionExtensions.cs
Quelle:
LoggingServiceCollectionExtensions.cs
Quelle:
LoggingServiceCollectionExtensions.cs
Quelle:
LoggingServiceCollectionExtensions.cs
Quelle:
LoggingServiceCollectionExtensions.cs

Fügt der angegebenen IServiceCollection Protokollierungsdienste hinzu.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddLogging(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configure);
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

Parameter

services
IServiceCollection

Die IServiceCollection, der Dienste hinzugefügt werden sollen.

configure
Action<ILoggingBuilder>

Der ILoggingBuilder-Konfigurationsdelegat.

Gibt zurück

Die IServiceCollection-Schnittstelle zur Verkettung weiterer Aufrufe.

Gilt für: