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 SubstitureServiceProvider implements SLF4JServiceProvider {
9       private SubstituteLoggerFactory loggerFactory = new SubstituteLoggerFactory();
10      private IMarkerFactory markerFactory = new BasicMarkerFactory();
11      private 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  
28      @Override
29      public MDCAdapter getMDCAdapter() {
30          return mdcAdapter;
31      }
32  
33  
34      @Override
35      public String getRequesteApiVersion() {
36         throw new UnsupportedOperationException();
37      }
38      
39      @Override
40      public void initialize() {
41      	
42      }
43  }