LoggerFactory.Create(Action<ILoggingBuilder>) 方法

定义

创建使用提供的configure委托配置的 的新实例ILoggerFactory

public:
 static Microsoft::Extensions::Logging::ILoggerFactory ^ Create(Action<Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configure);
public static Microsoft.Extensions.Logging.ILoggerFactory Create (Action<Microsoft.Extensions.Logging.ILoggingBuilder> configure);
static member Create : Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.Extensions.Logging.ILoggerFactory
Public Shared Function Create (configure As Action(Of ILoggingBuilder)) As ILoggerFactory

参数

configure
Action<ILoggingBuilder>

用于配置 ILoggingBuilder 的委托。

返回

所创建的 ILoggerFactory

适用于