KestrelServerOptionsConnectionLoggingExtensions.UseConnectionLogging 方法

定义

重载

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

参数

返回

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

参数

loggerName
String

返回

Microsoft.AspNetCore.Server.KestrelServerOptions。

适用于