Share via


KestrelServerOptionsConnectionLoggingExtensions.UseConnectionLogging Method

Definition

Overloads

UseConnectionLogging(KestrelServerOptions)

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

UseConnectionLogging(KestrelServerOptions, String)

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

UseConnectionLogging(KestrelServerOptions)

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

public static Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions UseConnectionLogging(this Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions options);

Parameters

Returns

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Applies to

UseConnectionLogging(KestrelServerOptions, String)

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

public static Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions UseConnectionLogging(this Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions options, string loggerName);

Parameters

loggerName
String

Returns

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Applies to