LoggingServiceCollectionExtensions.AddLogging Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
AddLogging(IServiceCollection) |
Belirtilen IServiceCollectionöğesine günlük hizmetleri ekler. |
AddLogging(IServiceCollection, Action<ILoggingBuilder>) |
Belirtilen IServiceCollectionöğesine günlük hizmetleri ekler. |
AddLogging(IServiceCollection)
Belirtilen IServiceCollectionöğesine günlük hizmetleri ekler.
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
Parametreler
- services
- IServiceCollection
IServiceCollection hizmet eklemek için.
Döndürülenler
IServiceCollection böylece ek çağrılar zincirlenebilir.
Şunlara uygulanır
AddLogging(IServiceCollection, Action<ILoggingBuilder>)
Belirtilen IServiceCollectionöğesine günlük hizmetleri ekler.
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
Parametreler
- services
- IServiceCollection
IServiceCollection hizmet eklemek için.
- configure
- Action<ILoggingBuilder>
Yapılandırma ILoggingBuilder temsilcisi.
Döndürülenler
IServiceCollection böylece ek çağrılar zincirlenebilir.
Şunlara uygulanır
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin