Logger<T>(ILoggerFactory) 构造函数

定义

创建一个新的 Logger<T>

public:
 Logger(Microsoft::Extensions::Logging::ILoggerFactory ^ factory);
public Logger (Microsoft.Extensions.Logging.ILoggerFactory factory);
new Microsoft.Extensions.Logging.Logger<'T> : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Logging.Logger<'T>
Public Sub New (factory As ILoggerFactory)

参数

factory
ILoggerFactory

工厂。

适用于