1 package org.slf4j.nop;
2
3 import org.slf4j.ILoggerFactory;
4 import org.slf4j.IMarkerFactory;
5 import org.slf4j.helpers.BasicMarkerFactory;
6 import org.slf4j.helpers.NOPLoggerFactory;
7 import org.slf4j.helpers.NOPMDCAdapter;
8 import org.slf4j.spi.MDCAdapter;
9 import org.slf4j.spi.SLF4JServiceProvider;
10
11 public class NOPServiceProvider implements SLF4JServiceProvider {
12
13
14
15
16
17
18 public static String REQUESTED_API_VERSION = "2.0.99";
19
20 private final ILoggerFactory loggerFactory = new NOPLoggerFactory();
21 private final IMarkerFactory markerFactory = new BasicMarkerFactory();
22 private final MDCAdapter mdcAdapter = new NOPMDCAdapter();
23
24 public ILoggerFactory getLoggerFactory() {
25 return loggerFactory;
26 }
27
28 public IMarkerFactory getMarkerFactory() {
29 return markerFactory;
30 }
31
32 public MDCAdapter getMDCAdapter() {
33 return mdcAdapter;
34 }
35
36 @Override
37 public String getRequestedApiVersion() {
38 return REQUESTED_API_VERSION;
39 }
40
41 public void initialize() {
42
43 }
44
45
46 }