LoggerFactory.Create(Action<ILoggingBuilder>) 方法

定义

创建使用提供的 configure 委托配置的 ILoggerFactory 的新实例。Creates new instance of ILoggerFactory configured using provided configure delegate.

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 的委托。A delegate to configure the ILoggingBuilder.

返回

ILoggerFactory

所创建的 ILoggerFactoryThe ILoggerFactory that was created.

适用于