View Javadoc
1   package org.slf4j.helpers;
2   
3   import org.slf4j.ILoggerFactory;
4   import org.slf4j.IMarkerFactory;
5   import org.slf4j.spi.MDCAdapter;
6   import org.slf4j.spi.SLF4JServiceProvider;
7   
8   public class SubstituteServiceProvider implements SLF4JServiceProvider {
9       private final SubstituteLoggerFactory loggerFactory = new SubstituteLoggerFactory();
10      private final IMarkerFactory markerFactory = new BasicMarkerFactory();
11      private final MDCAdapter mdcAdapter = new BasicMDCAdapter();
12  
13      @Override
14      public ILoggerFactory getLoggerFactory() {
15          return loggerFactory;
16      }
17  
18      public SubstituteLoggerFactory getSubstituteLoggerFactory() {
19          return loggerFactory;
20      }
21  
22      @Override
23      public IMarkerFactory getMarkerFactory() {
24          return markerFactory;
25      }
26  
27      @Override
28      public MDCAdapter getMDCAdapter() {
29          return mdcAdapter;
30      }
31  
32      @Override
33      public String getRequestedApiVersion() {
34          throw new UnsupportedOperationException();
35      }
36  
37      @Override
38      public void initialize() {
39  
40      }
41  }