com.tersesystems.logback.honeycomb.okhttp.HoneycombOkHTTPClientService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logback-honeycomb-okhttp Show documentation
Show all versions of logback-honeycomb-okhttp Show documentation
Terse Logback is a collection of Logback extensions that shows how to use Logback effectively for structured logging, ringbuffer logging, system instrumentation, and JDBC.
/*
* SPDX-License-Identifier: CC0-1.0
*
* Copyright 2018-2020 Will Sargent.
*
* Licensed under the CC0 Public Domain Dedication;
* You may obtain a copy of the License at
*
* http://creativecommons.org/publicdomain/zero/1.0/
*/
package com.tersesystems.logback.honeycomb.okhttp;
import com.fasterxml.jackson.core.JsonFactory;
import com.tersesystems.logback.honeycomb.client.HoneycombClient;
import com.tersesystems.logback.honeycomb.client.HoneycombClientService;
import com.tersesystems.logback.honeycomb.client.HoneycombRequest;
import java.util.function.Function;
import okhttp3.OkHttpClient;
public class HoneycombOkHTTPClientService implements HoneycombClientService {
@Override
public HoneycombClient newClient(
String apiKey, String dataset, Function, byte[]> encodeFunction) {
return new HoneycombOkHTTPClient(
new OkHttpClient(), new JsonFactory(), apiKey, dataset, encodeFunction);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy