1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.slf4j;
20
21 import org.slf4j.ILoggerFactory;
22 import org.slf4j.IMarkerFactory;
23 import org.slf4j.helpers.BasicMarkerFactory;
24 import org.slf4j.helpers.NOPMDCAdapter;
25 import org.slf4j.spi.MDCAdapter;
26 import org.slf4j.spi.SLF4JServiceProvider;
27
28 public class MavenServiceProvider implements SLF4JServiceProvider {
29
30
31
32
33
34
35 @SuppressWarnings({"checkstyle:StaticVariableName", "checkstyle:VisibilityModifier"})
36 public static String REQUESTED_API_VERSION = "2.0.99";
37
38 private MavenLoggerFactory loggerFactory = new MavenLoggerFactory();
39 private IMarkerFactory markerFactory = new BasicMarkerFactory();
40 private MDCAdapter mdcAdapter = new NOPMDCAdapter();
41
42 public ILoggerFactory getLoggerFactory() {
43 return loggerFactory;
44 }
45
46 @Override
47 public IMarkerFactory getMarkerFactory() {
48 return markerFactory;
49 }
50
51 @Override
52 public MDCAdapter getMDCAdapter() {
53 return mdcAdapter;
54 }
55
56 @Override
57 public String getRequestedApiVersion() {
58 return REQUESTED_API_VERSION;
59 }
60
61 @Override
62 public void initialize() {
63
64 }
65 }