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

65 строки
6.2 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.core.http.policy.HttpRequestLogger"
fullName: "com.azure.core.http.policy.HttpRequestLogger"
name: "HttpRequestLogger"
nameWithType: "HttpRequestLogger"
summary: "Manages logging HTTP requests in <xref uid=\"com.azure.core.http.policy.HttpLoggingPolicy\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpLoggingPolicy\"></xref>."
syntax: "public interface **HttpRequestLogger**"
methods:
- uid: "com.azure.core.http.policy.HttpRequestLogger.getLogLevel(com.azure.core.http.policy.HttpRequestLoggingContext)"
fullName: "com.azure.core.http.policy.HttpRequestLogger.getLogLevel(HttpRequestLoggingContext loggingOptions)"
name: "getLogLevel(HttpRequestLoggingContext loggingOptions)"
nameWithType: "HttpRequestLogger.getLogLevel(HttpRequestLoggingContext 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 request."
modifiers:
- "default"
parameters:
- description: "The information available during request logging."
name: "loggingOptions"
type: "<xref href=\"com.azure.core.http.policy.HttpRequestLoggingContext?alt=com.azure.core.http.policy.HttpRequestLoggingContext&text=HttpRequestLoggingContext\" data-throw-if-not-resolved=\"False\" />"
syntax: "public default LogLevel getLogLevel(HttpRequestLoggingContext 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 request.\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 request."
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.HttpRequestLogger.logRequest(com.azure.core.util.logging.ClientLogger,com.azure.core.http.policy.HttpRequestLoggingContext)"
fullName: "com.azure.core.http.policy.HttpRequestLogger.logRequest(ClientLogger logger, HttpRequestLoggingContext loggingOptions)"
name: "logRequest(ClientLogger logger, HttpRequestLoggingContext loggingOptions)"
nameWithType: "HttpRequestLogger.logRequest(ClientLogger logger, HttpRequestLoggingContext loggingOptions)"
summary: "Logs the HTTP request."
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 HTTP request."
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 request logging."
name: "loggingOptions"
type: "<xref href=\"com.azure.core.http.policy.HttpRequestLoggingContext?alt=com.azure.core.http.policy.HttpRequestLoggingContext&text=HttpRequestLoggingContext\" data-throw-if-not-resolved=\"False\" />"
syntax: "public abstract Mono<Void> logRequest(ClientLogger logger, HttpRequestLoggingContext loggingOptions)"
desc: "Logs the HTTP request.\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 request use <xref uid=\"com.azure.core.http.policy.HttpRequestLogger.getLogLevel(com.azure.core.http.policy.HttpRequestLoggingContext)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#getLogLevel(HttpRequestLoggingContext)\"></xref>."
returns:
description: "A reactive response that indicates that the HTTP request has been logged."
type: "<a href=\"https://projectreactor.io/docs/core/release/api/reactor/core/publisher/Mono.html\">Mono</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html\">Void</a>&gt;"
- uid: "com.azure.core.http.policy.HttpRequestLogger.logRequestSync(com.azure.core.util.logging.ClientLogger,com.azure.core.http.policy.HttpRequestLoggingContext)"
fullName: "com.azure.core.http.policy.HttpRequestLogger.logRequestSync(ClientLogger logger, HttpRequestLoggingContext loggingOptions)"
name: "logRequestSync(ClientLogger logger, HttpRequestLoggingContext loggingOptions)"
nameWithType: "HttpRequestLogger.logRequestSync(ClientLogger logger, HttpRequestLoggingContext loggingOptions)"
summary: "Logs the HTTP request."
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 HTTP request."
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 request logging."
name: "loggingOptions"
type: "<xref href=\"com.azure.core.http.policy.HttpRequestLoggingContext?alt=com.azure.core.http.policy.HttpRequestLoggingContext&text=HttpRequestLoggingContext\" data-throw-if-not-resolved=\"False\" />"
syntax: "public default void logRequestSync(ClientLogger logger, HttpRequestLoggingContext loggingOptions)"
desc: "Logs the HTTP request. 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 request use <xref uid=\"com.azure.core.http.policy.HttpRequestLogger.getLogLevel(com.azure.core.http.policy.HttpRequestLoggingContext)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#getLogLevel(HttpRequestLoggingContext)\"></xref>."
type: "interface"
desc: "Manages logging HTTP requests 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