public final class LoggingClient extends SimpleDecoratingClient<I,O> implements HttpClient
| Constructor and Description |
|---|
LoggingClient(HttpClient delegate)
Deprecated.
Use
newDecorator(). |
LoggingClient(HttpClient delegate,
LogLevel level)
Deprecated.
Use
LoggingClientBuilder. |
| Modifier and Type | Method and Description |
|---|---|
static LoggingClientBuilder |
builder()
Returns a newly created
LoggingClientBuilder. |
O |
execute(ClientRequestContext ctx,
I req)
|
static Function<? super HttpClient,LoggingClient> |
newDecorator()
Returns a new
HttpClient decorator that logs Requests and Responses at
LogLevel.INFO for success, LogLevel.WARN for failure. |
static Function<? super HttpClient,LoggingClient> |
newDecorator(LogLevel level)
Deprecated.
Use
builder(). |
as, delegate, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecute@Deprecated public LoggingClient(HttpClient delegate)
newDecorator().@Deprecated public LoggingClient(HttpClient delegate, LogLevel level)
LoggingClientBuilder.public static Function<? super HttpClient,LoggingClient> newDecorator()
HttpClient decorator that logs Requests and Responses at
LogLevel.INFO for success, LogLevel.WARN for failure.@Deprecated public static Function<? super HttpClient,LoggingClient> newDecorator(LogLevel level)
builder().level - the log levelpublic static LoggingClientBuilder builder()
LoggingClientBuilder.Copyright © 2020 LeanCloud. All rights reserved.