| Package | Description |
|---|---|
| com.microsoft.rest |
The package contains the runtime classes required for AutoRest generated
clients to compile and function.
|
| com.microsoft.rest.interceptors |
The package contains default interceptors for making HTTP requests.
|
| Modifier and Type | Method and Description |
|---|---|
LogLevel |
RestClient.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.
|
LogLevel |
LogLevel.withPrettyJson(boolean prettyJson)
Specifies whether to log prettified JSON.
|
| Modifier and Type | Method and Description |
|---|---|
RestClient |
RestClient.withLogLevel(LogLevel logLevel)
Set the current HTTP traffic logging level.
|
RestClient.Builder |
RestClient.Builder.withLogLevel(LogLevel logLevel)
Sets the HTTP log level.
|
| Modifier and Type | Method and Description |
|---|---|
LogLevel |
LoggingInterceptor.logLevel() |
| Modifier and Type | Method and Description |
|---|---|
LoggingInterceptor |
LoggingInterceptor.withLogLevel(LogLevel logLevel)
Sets the current logging level.
|
| Constructor and Description |
|---|
LoggingInterceptor(LogLevel logLevel)
Creates an interceptor with a LogLevel enum.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/