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

io.tracee.backend.slf4j.Slf4jTraceeBackendProvider Maven / Gradle / Ivy

There is a newer version: 0.11.0
Show newest version
package io.tracee.backend.slf4j;

import io.tracee.ThreadLocalHashSet;
import io.tracee.TraceeBackend;
import io.tracee.spi.TraceeBackendProvider;

public class Slf4jTraceeBackendProvider implements TraceeBackendProvider {

    private final Slf4jMdcAdapter slf4jMdcAdapter = new Slf4jMdcAdapter();
    private final ThreadLocalHashSet traceeKeys = new ThreadLocalHashSet();
    private final Slf4jTraceeBackend slf4jTraceeContext = new Slf4jTraceeBackend(slf4jMdcAdapter, traceeKeys);

    @Override
    public final TraceeBackend provideBackend() {
        return slf4jTraceeContext;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy