com.truelayer.java.http.interceptors.logging.DefaultLogConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truelayer-java Show documentation
Show all versions of truelayer-java Show documentation
TrueLayer Java SDK for https://truelayer.com
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);
}
}