Class WatsonRestApi.WatsonClientLogger
java.lang.Object
io.quarkiverse.langchain4j.watsonx.client.WatsonRestApi.WatsonClientLogger
- All Implemented Interfaces:
org.jboss.resteasy.reactive.client.api.ClientLogger
- Enclosing interface:
- WatsonRestApi
public static class WatsonRestApi.WatsonClientLogger
extends Object
implements org.jboss.resteasy.reactive.client.api.ClientLogger
Introduce a custom logger as the stock one logs at the DEBUG level by
default...
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlogRequest(io.vertx.core.http.HttpClientRequest request, io.vertx.core.buffer.Buffer body, boolean omitBody) voidlogResponse(io.vertx.core.http.HttpClientResponse response, boolean redirect) voidsetBodySize(int bodySize)
-
Constructor Details
-
WatsonClientLogger
public WatsonClientLogger(boolean logRequests, boolean logResponses)
-
-
Method Details
-
setBodySize
public void setBodySize(int bodySize) - Specified by:
setBodySizein interfaceorg.jboss.resteasy.reactive.client.api.ClientLogger
-
logRequest
public void logRequest(io.vertx.core.http.HttpClientRequest request, io.vertx.core.buffer.Buffer body, boolean omitBody) - Specified by:
logRequestin interfaceorg.jboss.resteasy.reactive.client.api.ClientLogger
-
logResponse
public void logResponse(io.vertx.core.http.HttpClientResponse response, boolean redirect) - Specified by:
logResponsein interfaceorg.jboss.resteasy.reactive.client.api.ClientLogger
-