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
.O
execute(ClientRequestContext ctx, I req)
static Function<? super HttpClient,LoggingClient>
newDecorator()
Returns a newHttpClient
decorator that logsRequest
s andResponse
s atLogLevel.INFO
for success,LogLevel.WARN
for failure.Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable
as, delegate, toString
-
Method Details
-
newDecorator
Returns a newHttpClient
decorator that logsRequest
s andResponse
s atLogLevel.INFO
for success,LogLevel.WARN
for failure. -
builder
Returns a newly createdLoggingClientBuilder
. -
execute
Description copied from interface:Client
-