io.tracee.backend.log4j.Log4jTraceeBackend 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.MDCLike;
import io.tracee.MDCLikeTraceeBackend;
import io.tracee.TraceeLogger;
import io.tracee.TraceeLoggerFactory;
import org.apache.log4j.Logger;
import java.util.Set;
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));
}
});
}
}