Package | Description |
---|---|
com.azure.core.http.policy |
Package containing HttpPipelinePolicy interface and its implementations.
|
com.azure.core.util.logging |
Package containing logging APIs.
|
Modifier and Type | Method and Description |
---|---|
default LogLevel |
HttpRequestLogger.getLogLevel(HttpRequestLoggingContext loggingOptions)
Gets the
LogLevel used to log the HTTP request. |
default LogLevel |
HttpResponseLogger.getLogLevel(HttpResponseLoggingContext loggingOptions)
Gets the
LogLevel used to log the HTTP response. |
Modifier and Type | Method and Description |
---|---|
static LogLevel |
LogLevel.fromString(String logLevelVal)
Converts the passed log level string to the corresponding
LogLevel . |
static LogLevel |
LogLevel.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogLevel[] |
LogLevel.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ClientLogger.canLogAtLevel(LogLevel logLevel)
Determines if the app or environment logger support logging at the given log level.
|
void |
ClientLogger.log(LogLevel logLevel,
Supplier<String> message)
Logs a format-able message that uses
{} as the placeholder at the given logLevel . |
void |
ClientLogger.log(LogLevel logLevel,
Supplier<String> message,
Throwable throwable)
Logs a format-able message that uses
{} as the placeholder at verbose log level. |
Copyright © 2021 Microsoft Corporation. All rights reserved.