Class LoggingClient
java.lang.Object
com.linecorp.armeria.common.util.AbstractUnwrappable<Client<T_I,T_O>>
com.linecorp.armeria.client.DecoratingClient<I,O,I,O>
com.linecorp.armeria.client.SimpleDecoratingClient<I,O>
com.linecorp.armeria.client.logging.LoggingClient
- All Implemented Interfaces:
Client<HttpRequest,HttpResponse>
,HttpClient
,Unwrappable
public final class LoggingClient extends SimpleDecoratingClient<I,O> implements HttpClient
-
Method Summary
Modifier and Type Method Description static LoggingClientBuilder
builder()
Returns a newly createdLoggingClientBuilder
.HttpResponse
execute(ClientRequestContext ctx, HttpRequest req)
static Function<? super HttpClient,LoggingClient>
newDecorator()
Returns a newHttpClient
decorator that logsRequest
s andResponse
s atLogLevel.DEBUG
for success,LogLevel.WARN
for failure.Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable
as, toString, unwrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.client.HttpClient
execute
-
Method Details
-
newDecorator
Returns a newHttpClient
decorator that logsRequest
s andResponse
s atLogLevel.DEBUG
for success,LogLevel.WARN
for failure. SeeLoggingClientBuilder
for more information on the default settings. -
builder
Returns a newly createdLoggingClientBuilder
. -
execute
Description copied from interface:Client
-