LoggerFactory.CreateLogger(String) 方法

定义

创建具有指定 categoryNameILogger

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

参数

categoryName
String

记录器生成的消息的类别名称。

返回

所创建的 ILogger

实现

适用于