共用方式為


TestingUtils.ConfigureDefaultLoggingBuilder(ILoggingBuilder, String) 方法

定義

builder使用 FileLoggerProvider 預設要記錄的 filePath 進行設定;

public static void ConfigureDefaultLoggingBuilder (Microsoft.Extensions.Logging.ILoggingBuilder builder, string filePath);
static member ConfigureDefaultLoggingBuilder : Microsoft.Extensions.Logging.ILoggingBuilder * string -> unit
Public Shared Sub ConfigureDefaultLoggingBuilder (builder As ILoggingBuilder, filePath As String)

參數

builder
ILoggingBuilder

產生器。

filePath
String

檔案路徑。

適用於