KestrelServerOptionsConnectionLoggingExtensions Class

Namespace
Microsoft.AspNetCore.Hosting
Assemblies
  • Microsoft.AspNetCore.Server.Kestrel

Syntax

public class KestrelServerOptionsConnectionLoggingExtensions
class Microsoft.AspNetCore.Hosting.KestrelServerOptionsConnectionLoggingExtensions

Methods

UseConnectionLogging(Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions)

Emits verbose logs for bytes read from and written to the connection.

Return type:Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions
Returns:The Microsoft.AspNetCore.Server.KestrelServerOptions.
public static KestrelServerOptions UseConnectionLogging(this KestrelServerOptions options)
UseConnectionLogging(Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions, System.String)

Emits verbose logs for bytes read from and written to the connection.

Return type:Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions
Returns:The Microsoft.AspNetCore.Server.KestrelServerOptions.
public static KestrelServerOptions UseConnectionLogging(this KestrelServerOptions options, string loggerName)