io.tracee.backend.log4j.Log4jTraceeBackendProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tracee-log4j Show documentation
Show all versions of tracee-log4j Show documentation
Please refer to https://github.com/tracee/tracee.
package io.tracee.backend.log4j;
import io.tracee.ThreadLocalHashSet;
import io.tracee.TraceeBackend;
import io.tracee.spi.TraceeBackendProvider;
import java.util.Set;
public class Log4jTraceeBackendProvider implements TraceeBackendProvider {
private final Log4jMdcLikeAdapter log4jMdcLikeAdapter = new Log4jMdcLikeAdapter();
private final ThreadLocal> traceeKeyStore = new ThreadLocalHashSet();
private final Log4jTraceeBackend log4jTraceeBackend = new Log4jTraceeBackend(log4jMdcLikeAdapter, traceeKeyStore);
@Override
public final TraceeBackend provideBackend() {
return log4jTraceeBackend;
}
}