1
2
3
4
5
6
7
8
9
10
11
12
13
14 package ch.qos.logback.classic.util;
15
16 import ch.qos.logback.classic.LoggerContext;
17 import ch.qos.logback.classic.spi.Configurator;
18 import ch.qos.logback.classic.spi.ConfiguratorRank;
19 import ch.qos.logback.core.Context;
20 import ch.qos.logback.core.spi.ContextAwareBase;
21
22 @ConfiguratorRank(ConfiguratorRank.CUSTOM_LOW_PRIORITY)
23 public class MockConfigurator extends ContextAwareBase implements Configurator {
24
25 static Context context = null;
26
27 public ExecutionStatus configure(LoggerContext aContext) {
28 context = aContext;
29 return ExecutionStatus.NEUTRAL;
30 }
31 }