All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.truelayer.java.http.interceptors.logging.DefaultLogConsumer Maven / Gradle / Ivy

There is a newer version: 16.0.0
Show newest version
package com.truelayer.java.http.interceptors.logging;

import com.truelayer.java.http.LoggerFactory;
import java.util.function.Consumer;
import org.tinylog.TaggedLogger;

/**
 * Default logging class for our library. Relies on Tinylog logging library.
 * @see Tinylog docs
 */
public class DefaultLogConsumer implements Consumer {
    private final TaggedLogger logger;

    public DefaultLogConsumer() {
        this.logger = LoggerFactory.NewHttpLogger();
    }

    @Override
    public void accept(String s) {
        logger.trace(s);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy