共用方式為


LoggingServiceCollectionExtensions 類別

定義

IServiceCollection 中設定記錄服務的擴充方法。

public ref class LoggingServiceCollectionExtensions abstract sealed
public static class LoggingServiceCollectionExtensions
type LoggingServiceCollectionExtensions = class
Public Module LoggingServiceCollectionExtensions
繼承
LoggingServiceCollectionExtensions

方法

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

將記錄服務新增至指定的 IServiceCollection

AddLogging(IServiceCollection)

將記錄服務新增至指定的 IServiceCollection

適用於