io.irain.reactor.logging.loki.Loki4jOkHttpSender Maven / Gradle / Ivy
package io.irain.reactor.logging.loki;
import com.github.loki4j.client.http.HttpConfig;
import com.github.loki4j.client.http.Loki4jHttpClient;
import com.github.loki4j.logback.AbstractHttpSender;
import java.util.function.Function;
/**
* Loki sender that is backed by OkHttp
*
* @author youta
*/
public class Loki4jOkHttpSender extends AbstractHttpSender {
@Override
public Function getHttpClientFactory() {
return Loki4jOkHttpClient::new;
}
@Override
public HttpConfig.Builder getConfig() {
HttpConfig.Builder builder = HttpConfig.builder();
super.fillHttpConfig(builder);
return builder;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy