blob: 6d37cbc9f7d6aea2618bbc1924a4fabb261bd06b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Upstream uses an older version of slf4j-simple
--- a/biz.aQute.bnd/src/aQute/bnd/main/bnd.java
+++ b/biz.aQute.bnd/src/aQute/bnd/main/bnd.java
@@ -486,14 +486,14 @@ public class bnd extends Processor {
System.setProperty(DEFAULT_LOG_LEVEL_KEY, "warn");
level = org.slf4j.spi.LocationAwareLogger.WARN_INT;
}
- Field field = org.slf4j.impl.SimpleLogger.class.getDeclaredField("CONFIG_PARAMS");
+ Field field = org.slf4j.simple.SimpleLogger.class.getDeclaredField("CONFIG_PARAMS");
field.setAccessible(true);
Object CONFIG_PARAMS = field.get(null);
- field = org.slf4j.impl.SimpleLoggerConfiguration.class.getDeclaredField("defaultLogLevel");
+ field = org.slf4j.simple.SimpleLoggerConfiguration.class.getDeclaredField("defaultLogLevel");
field.setAccessible(true);
field.set(CONFIG_PARAMS, level);
- field = org.slf4j.impl.SimpleLogger.class.getDeclaredField("currentLogLevel");
+ field = org.slf4j.simple.SimpleLogger.class.getDeclaredField("currentLogLevel");
field.setAccessible(true);
field.set(logger, level);
} catch (Exception e) {
|