@FunctionalInterface public interface HttpRequestLogger
HttpLoggingPolicy.| Modifier and Type | Method and Description |
|---|---|
default LogLevel |
getLogLevel(HttpRequestLoggingContext loggingOptions)
Gets the
LogLevel used to log the HTTP request. |
Mono<Void> |
logRequest(ClientLogger logger,
HttpRequestLoggingContext loggingOptions)
Logs the HTTP request.
|
default LogLevel getLogLevel(HttpRequestLoggingContext loggingOptions)
LogLevel used to log the HTTP request.
By default this will return LogLevel.INFORMATIONAL.
loggingOptions - The information available during request logging.LogLevel used to log the HTTP request.Mono<Void> logRequest(ClientLogger logger, HttpRequestLoggingContext loggingOptions)
To get the LogLevel used to log the HTTP request use HttpRequestLogger.getLogLevel(HttpRequestLoggingContext).
logger - The ClientLogger used to log the HTTP request.loggingOptions - The information available during request logging.Copyright © 2021 Microsoft Corporation. All rights reserved.