共用方式為


OwinAppBuilder.ConfigureLogger(IAppBuilder, HttpConfiguration) 方法

定義

將 (選擇性) 記錄新增至 OWIN 應用程式管線。 Microsoft.Owin.Logging.ILoggerFactory可以向相依性插入引擎註冊 。

protected internal virtual void ConfigureLogger (Owin.IAppBuilder appBuilder, System.Web.Http.HttpConfiguration config);
abstract member ConfigureLogger : Owin.IAppBuilder * System.Web.Http.HttpConfiguration -> unit
override this.ConfigureLogger : Owin.IAppBuilder * System.Web.Http.HttpConfiguration -> unit
Protected Friend Overridable Sub ConfigureLogger (appBuilder As IAppBuilder, config As HttpConfiguration)

參數

appBuilder
Owin.IAppBuilder

要設定的 Owin.IAppBuilder

config
System.Web.Http.HttpConfiguration

目前的 System.Web.Http.HttpConfiguration

適用於