HttpRequestLogger Interface

Definition

Manages logging HTTP requests in HttpLoggingPolicy.

public interface HttpRequestLogger

Methods

getLogLevel(HttpRequestLoggingContext loggingOptions)

Gets the LogLevel used to log the HTTP request.

By default, this will return INFORMATIONAL.

logRequest(ClientLogger logger, HttpRequestLoggingContext loggingOptions)

Logs the HTTP request.

To get the LogLevel used to log the HTTP request use getLogLevel(HttpRequestLoggingContext loggingOptions).

Applies to