KestrelServerOptionsConnectionLoggingExtensions.UseConnectionLogging 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseConnectionLogging(KestrelServerOptions) |
發出讀取和寫入連線之位元組的詳細資訊記錄。 |
UseConnectionLogging(KestrelServerOptions, String) |
發出讀取和寫入連線之位元組的詳細資訊記錄。 |
UseConnectionLogging(KestrelServerOptions)
發出讀取和寫入連線之位元組的詳細資訊記錄。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ UseConnectionLogging(Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ options);
public static Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions UseConnectionLogging (this Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions options);
static member UseConnectionLogging : Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions -> Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions
<Extension()>
Public Function UseConnectionLogging (options As KestrelServerOptions) As KestrelServerOptions
參數
- options
- KestrelServerOptions
傳回
Microsoft.AspNetCore.Server.KestrelServerOptions。
適用於
UseConnectionLogging(KestrelServerOptions, String)
發出讀取和寫入連線之位元組的詳細資訊記錄。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ UseConnectionLogging(Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ options, System::String ^ loggerName);
public static Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions UseConnectionLogging (this Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions options, string loggerName);
static member UseConnectionLogging : Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions * string -> Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions
<Extension()>
Public Function UseConnectionLogging (options As KestrelServerOptions, loggerName As String) As KestrelServerOptions
參數
- options
- KestrelServerOptions
- loggerName
- String
傳回
Microsoft.AspNetCore.Server.KestrelServerOptions。