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

io.tracee.backend.log4j.Log4jTraceeBackendProvider Maven / Gradle / Ivy

There is a newer version: 0.11.0
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy