de.holisticon.util.tracee.backend.log4j.Log4jTraceeBackend Maven / Gradle / Ivy
package de.holisticon.util.tracee.backend.log4j;
import de.holisticon.util.tracee.MDCLike;
import de.holisticon.util.tracee.MDCLikeTraceeBackend;
import de.holisticon.util.tracee.TraceeLogger;
import de.holisticon.util.tracee.TraceeLoggerFactory;
import org.apache.log4j.Logger;
import java.util.Set;
/**
* @author Daniel Wegener (Holisticon AG)
*/
final class Log4jTraceeBackend extends MDCLikeTraceeBackend {
Log4jTraceeBackend(MDCLike mdcAdapter, ThreadLocal> traceeKeys) {
super(mdcAdapter, traceeKeys, new TraceeLoggerFactory() {
@Override
public TraceeLogger getLogger(Class> clazz) {
return new Log4jTraceeLogger(Logger.getLogger(clazz));
}
});
}
}