001package org.slf4j.helpers;
002
003import org.slf4j.ILoggerFactory;
004import org.slf4j.IMarkerFactory;
005import org.slf4j.spi.MDCAdapter;
006import org.slf4j.spi.SLF4JServiceProvider;
007
008public class SubstituteServiceProvider implements SLF4JServiceProvider {
009    private final SubstituteLoggerFactory loggerFactory = new SubstituteLoggerFactory();
010    private final IMarkerFactory markerFactory = new BasicMarkerFactory();
011    private final MDCAdapter mdcAdapter = new BasicMDCAdapter();
012
013    @Override
014    public ILoggerFactory getLoggerFactory() {
015        return loggerFactory;
016    }
017
018    public SubstituteLoggerFactory getSubstituteLoggerFactory() {
019        return loggerFactory;
020    }
021
022    @Override
023    public IMarkerFactory getMarkerFactory() {
024        return markerFactory;
025    }
026
027    @Override
028    public MDCAdapter getMDCAdapter() {
029        return mdcAdapter;
030    }
031
032    @Override
033    public String getRequestedApiVersion() {
034        throw new UnsupportedOperationException();
035    }
036
037    @Override
038    public void initialize() {
039
040    }
041}