
org.slf4j.impl.StaticMDCBinder Maven / Gradle / Ivy
The newest version!
package org.slf4j.impl;
import com.gs.api.accelrx.context.log4j.AccelRxMDCAdapter;
import org.slf4j.spi.MDCAdapter;
/**
* Registers AccelRxMDCAdapter as slf4j MDC implementation.
*
* In order to be used, this class must appear on the classpath before implementations from other modules.
* Alternatively, the {@link AccelRxMDCAdapter#install()} may be used to
*/
public final class StaticMDCBinder {
private StaticMDCBinder() {
}
public static StaticMDCBinder getSingleton() {
return SingletonHolder.instance;
}
public MDCAdapter getMDCA() {
return new AccelRxMDCAdapter();
}
public String getMDCAdapterClassStr() {
return AccelRxMDCAdapter.class.getName();
}
private static class SingletonHolder {
private static final StaticMDCBinder instance = new StaticMDCBinder();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy