Class OpenAiRestApi.OpenAiClientLogger
java.lang.Object
io.quarkiverse.langchain4j.openai.common.OpenAiRestApi.OpenAiClientLogger
- All Implemented Interfaces:
org.jboss.resteasy.reactive.client.api.ClientLogger
- Enclosing interface:
OpenAiRestApi
public static class OpenAiRestApi.OpenAiClientLogger
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 TypeMethodDescriptionvoid
logRequest
(io.vertx.core.http.HttpClientRequest request, io.vertx.core.buffer.Buffer body, boolean omitBody) void
logResponse
(io.vertx.core.http.HttpClientResponse response, boolean redirect) void
setBodySize
(int bodySize)
-
Constructor Details
-
OpenAiClientLogger
public OpenAiClientLogger(boolean logRequests, boolean logResponses)
-
-
Method Details
-
setBodySize
public void setBodySize(int bodySize) - Specified by:
setBodySize
in 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:
logRequest
in interfaceorg.jboss.resteasy.reactive.client.api.ClientLogger
-
logResponse
public void logResponse(io.vertx.core.http.HttpClientResponse response, boolean redirect) - Specified by:
logResponse
in interfaceorg.jboss.resteasy.reactive.client.api.ClientLogger
-