ILoggerProvider.CreateLogger(String) 方法

定義

建立新的 ILogger 執行個體。Creates a new ILogger instance.

public:
 Microsoft::Extensions::Logging::ILogger ^ CreateLogger(System::String ^ categoryName);
public Microsoft.Extensions.Logging.ILogger CreateLogger (string categoryName);
abstract member CreateLogger : string -> Microsoft.Extensions.Logging.ILogger
Public Function CreateLogger (categoryName As String) As ILogger

參數

categoryName
String

記錄器所產生訊息的類別名稱。The category name for messages produced by the logger.

傳回

所建立的 ILogger 執行個體。The instance of ILogger that was created.

適用於