ListenOptionsConnectionLoggingExtensions.UseConnectionLogging Метод
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
UseConnectionLogging(ListenOptions) |
Создает подробные журналы для байтов, считанных и записанных в подключение. |
UseConnectionLogging(ListenOptions, String) |
Создает подробные журналы для байтов, считанных и записанных в подключение. |
- Исходный код:
- ListenOptionsConnectionLoggingExtensions.cs
- Исходный код:
- ListenOptionsConnectionLoggingExtensions.cs
- Исходный код:
- ListenOptionsConnectionLoggingExtensions.cs
Создает подробные журналы для байтов, считанных и записанных в подключение.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseConnectionLogging(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseConnectionLogging (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions);
static member UseConnectionLogging : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseConnectionLogging (listenOptions As ListenOptions) As ListenOptions
Параметры
- listenOptions
- ListenOptions
Возвращаемое значение
Применяется к
ASP.NET Core 9.0 и другие версии
Продукт | Версии |
---|---|
ASP.NET Core | 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
- Исходный код:
- ListenOptionsConnectionLoggingExtensions.cs
- Исходный код:
- ListenOptionsConnectionLoggingExtensions.cs
- Исходный код:
- ListenOptionsConnectionLoggingExtensions.cs
Создает подробные журналы для байтов, считанных и записанных в подключение.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseConnectionLogging(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions, System::String ^ loggerName);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseConnectionLogging (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string loggerName);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseConnectionLogging (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string? loggerName);
static member UseConnectionLogging : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * string -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseConnectionLogging (listenOptions As ListenOptions, loggerName As String) As ListenOptions
Параметры
- listenOptions
- ListenOptions
- loggerName
- String
Возвращаемое значение
Применяется к
ASP.NET Core 9.0 и другие версии
Продукт | Версии |
---|---|
ASP.NET Core | 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |