azure-docs-sdk-java/docs-ref-autogen/com.azure.core.http.policy....

68 строки
6.6 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.core.http.policy.HttpResponseLogger"
fullName: "com.azure.core.http.policy.HttpResponseLogger"
name: "HttpResponseLogger"
nameWithType: "HttpResponseLogger"
summary: "Manages logging HTTP responses in <xref uid=\"com.azure.core.http.policy.HttpLoggingPolicy\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpLoggingPolicy\"></xref>."
syntax: "public interface **HttpResponseLogger**"
methods:
- uid: "com.azure.core.http.policy.HttpResponseLogger.getLogLevel(com.azure.core.http.policy.HttpResponseLoggingContext)"
fullName: "com.azure.core.http.policy.HttpResponseLogger.getLogLevel(HttpResponseLoggingContext loggingOptions)"
name: "getLogLevel(HttpResponseLoggingContext loggingOptions)"
nameWithType: "HttpResponseLogger.getLogLevel(HttpResponseLoggingContext loggingOptions)"
summary: "Gets the <xref uid=\"com.azure.core.util.logging.LogLevel\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogLevel\"></xref> used to log the HTTP response."
modifiers:
- "default"
parameters:
- description: "The information available during response logging."
name: "loggingOptions"
type: "<xref href=\"com.azure.core.http.policy.HttpResponseLoggingContext?alt=com.azure.core.http.policy.HttpResponseLoggingContext&text=HttpResponseLoggingContext\" data-throw-if-not-resolved=\"False\" />"
syntax: "public default LogLevel getLogLevel(HttpResponseLoggingContext loggingOptions)"
desc: "Gets the <xref uid=\"com.azure.core.util.logging.LogLevel\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogLevel\"></xref> used to log the HTTP response.\n\nBy default, this will return <xref uid=\"com.azure.core.util.logging.LogLevel.INFORMATIONAL\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogLevel#INFORMATIONAL\"></xref>."
returns:
description: "The <xref uid=\"com.azure.core.util.logging.LogLevel\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogLevel\"></xref> used to log the HTTP response."
type: "<xref href=\"com.azure.core.util.logging.LogLevel?alt=com.azure.core.util.logging.LogLevel&text=LogLevel\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.http.policy.HttpResponseLogger.logResponse(com.azure.core.util.logging.ClientLogger,com.azure.core.http.policy.HttpResponseLoggingContext)"
fullName: "com.azure.core.http.policy.HttpResponseLogger.logResponse(ClientLogger logger, HttpResponseLoggingContext loggingOptions)"
name: "logResponse(ClientLogger logger, HttpResponseLoggingContext loggingOptions)"
nameWithType: "HttpResponseLogger.logResponse(ClientLogger logger, HttpResponseLoggingContext loggingOptions)"
summary: "Logs the HTTP response."
modifiers:
- "abstract"
parameters:
- description: "The <xref uid=\"com.azure.core.util.logging.ClientLogger\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ClientLogger\"></xref> used to log the response."
name: "logger"
type: "<xref href=\"com.azure.core.util.logging.ClientLogger?alt=com.azure.core.util.logging.ClientLogger&text=ClientLogger\" data-throw-if-not-resolved=\"False\" />"
- description: "The information available during response logging."
name: "loggingOptions"
type: "<xref href=\"com.azure.core.http.policy.HttpResponseLoggingContext?alt=com.azure.core.http.policy.HttpResponseLoggingContext&text=HttpResponseLoggingContext\" data-throw-if-not-resolved=\"False\" />"
syntax: "public abstract Mono<HttpResponse> logResponse(ClientLogger logger, HttpResponseLoggingContext loggingOptions)"
desc: "Logs the HTTP response.\n\nTo get the <xref uid=\"com.azure.core.util.logging.LogLevel\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogLevel\"></xref> used to log the HTTP response use <xref uid=\"com.azure.core.http.policy.HttpResponseLogger.getLogLevel(com.azure.core.http.policy.HttpResponseLoggingContext)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#getLogLevel(HttpResponseLoggingContext)\"></xref>."
returns:
description: "A reactive response that returns the HTTP response that was logged."
type: "<a href=\"https://projectreactor.io/docs/core/release/api/reactor/core/publisher/Mono.html\">Mono</a>&lt;<xref href=\"com.azure.core.http.HttpResponse?alt=com.azure.core.http.HttpResponse&text=HttpResponse\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.core.http.policy.HttpResponseLogger.logResponseSync(com.azure.core.util.logging.ClientLogger,com.azure.core.http.policy.HttpResponseLoggingContext)"
fullName: "com.azure.core.http.policy.HttpResponseLogger.logResponseSync(ClientLogger logger, HttpResponseLoggingContext loggingOptions)"
name: "logResponseSync(ClientLogger logger, HttpResponseLoggingContext loggingOptions)"
nameWithType: "HttpResponseLogger.logResponseSync(ClientLogger logger, HttpResponseLoggingContext loggingOptions)"
summary: "Logs the HTTP response."
modifiers:
- "default"
parameters:
- description: "The <xref uid=\"com.azure.core.util.logging.ClientLogger\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ClientLogger\"></xref> used to log the response."
name: "logger"
type: "<xref href=\"com.azure.core.util.logging.ClientLogger?alt=com.azure.core.util.logging.ClientLogger&text=ClientLogger\" data-throw-if-not-resolved=\"False\" />"
- description: "The information available during response logging."
name: "loggingOptions"
type: "<xref href=\"com.azure.core.http.policy.HttpResponseLoggingContext?alt=com.azure.core.http.policy.HttpResponseLoggingContext&text=HttpResponseLoggingContext\" data-throw-if-not-resolved=\"False\" />"
syntax: "public default HttpResponse logResponseSync(ClientLogger logger, HttpResponseLoggingContext loggingOptions)"
desc: "Logs the HTTP response. To get the <xref uid=\"com.azure.core.util.logging.LogLevel\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogLevel\"></xref> used to log the HTTP response use <xref uid=\"com.azure.core.http.policy.HttpResponseLogger.getLogLevel(com.azure.core.http.policy.HttpResponseLoggingContext)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#getLogLevel(HttpResponseLoggingContext)\"></xref> ."
returns:
description: "A response that returns the HTTP response that was logged."
type: "<xref href=\"com.azure.core.http.HttpResponse?alt=com.azure.core.http.HttpResponse&text=HttpResponse\" data-throw-if-not-resolved=\"False\" />"
type: "interface"
desc: "Manages logging HTTP responses in <xref uid=\"com.azure.core.http.policy.HttpLoggingPolicy\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpLoggingPolicy\"></xref>."
metadata: {}
package: "com.azure.core.http.policy"
artifact: com.azure:azure-core:1.52.0