Class OllamaRestApi.OllamaLogger

java.lang.Object
io.quarkiverse.langchain4j.ollama.OllamaRestApi.OllamaLogger
All Implemented Interfaces:
org.jboss.resteasy.reactive.client.api.ClientLogger
Enclosing interface:
OllamaRestApi

public static class OllamaRestApi.OllamaLogger 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
    Constructor
    Description
    OllamaLogger(boolean logRequests, boolean logResponses)
     
    OllamaLogger(boolean logRequests, boolean logResponses, boolean logCurl)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OllamaLogger

      public OllamaLogger(boolean logRequests, boolean logResponses)
    • OllamaLogger

      public OllamaLogger(boolean logRequests, boolean logResponses, boolean logCurl)
  • Method Details

    • setBodySize

      public void setBodySize(int bodySize)
      Specified by:
      setBodySize in interface org.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 interface org.jboss.resteasy.reactive.client.api.ClientLogger
    • logResponse

      public void logResponse(io.vertx.core.http.HttpClientResponse response, boolean redirect)
      Specified by:
      logResponse in interface org.jboss.resteasy.reactive.client.api.ClientLogger