org.slf4j.impl.StaticMDCBinder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of slf4j-timber Show documentation
Show all versions of slf4j-timber Show documentation
SLF4J binding for Jake Wharton's Timber logging library
package org.slf4j.impl;
import org.slf4j.helpers.NOPMDCAdapter;
import org.slf4j.spi.MDCAdapter;
/**
* This implementation is bound to {@link NOPMDCAdapter}.
*
* @author Martin Sloup
*/
public class StaticMDCBinder {
/**
* The unique instance of this class.
*/
public static final StaticMDCBinder SINGLETON = new StaticMDCBinder();
private StaticMDCBinder() {
}
/**
* Currently this method always returns an instance of
* {@link NOPMDCAdapter}.
*/
public MDCAdapter getMDCA() {
return new NOPMDCAdapter();
}
public String getMDCAdapterClassStr() {
return NOPMDCAdapter.class.getName();
}
}