1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.logging.log4j.simple;
18
19 import org.apache.logging.log4j.spi.LoggerContext;
20 import org.apache.logging.log4j.spi.LoggerContextFactory;
21
22 import java.net.URI;
23
24
25
26
27 public class SimpleLoggerContextFactory implements LoggerContextFactory {
28
29 private static LoggerContext context = new SimpleLoggerContext();
30
31 @Override
32 public LoggerContext getContext(final String fqcn, final ClassLoader loader, final boolean currentContext) {
33 return context;
34 }
35
36 @Override
37 public LoggerContext getContext(final String fqcn, final ClassLoader loader, final boolean currentContext,
38 URI configLocation) {
39 return context;
40 }
41
42 @Override
43 public void removeContext(LoggerContext context) {
44 }
45 }