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。