HttpRequestLogger Interface
public interface HttpRequestLogger
Manages logging HTTP requests in HttpLoggingPolicy.
Method Summary
Modifier and Type | Method and Description |
---|---|
default
Log |
getLogLevel(HttpRequestLoggingContext loggingOptions)
Gets the LogLevel used to log the HTTP request. |
abstract Mono<Void> |
logRequest(ClientLogger logger, HttpRequestLoggingContext loggingOptions)
Logs the HTTP request. |
default void |
logRequestSync(ClientLogger logger, HttpRequestLoggingContext loggingOptions)
Logs the HTTP request. |
Method Details
getLogLevel
public default LogLevel getLogLevel(HttpRequestLoggingContext loggingOptions)
Gets the LogLevel used to log the HTTP request.
By default, this will return INFORMATIONAL.
Parameters:
Returns:
logRequest
public abstract Mono
Logs the HTTP request.
To get the LogLevel used to log the HTTP request use getLogLevel(HttpRequestLoggingContext loggingOptions).
Parameters:
Returns:
logRequestSync
public default void logRequestSync(ClientLogger logger, HttpRequestLoggingContext loggingOptions)
Logs the HTTP request. To get the LogLevel used to log the HTTP request use getLogLevel(HttpRequestLoggingContext loggingOptions).
Parameters:
Applies to
Azure SDK for Java