|
|
c5bd88 |
From 64a36cbc8d7c8234dfa2af8670c2e1ea4a5c3909 Mon Sep 17 00:00:00 2001
|
|
|
c5bd88 |
From: Marian Koncek <mkoncek@redhat.com>
|
|
|
c5bd88 |
Date: Thu, 11 Jul 2019 14:29:26 +0200
|
|
|
c5bd88 |
Subject: [PATCH] Port to OSGI 7.0.0
|
|
|
c5bd88 |
|
|
|
c5bd88 |
---
|
|
|
c5bd88 |
.../src/aQute/bnd/junit/ConsoleLogger.java | 62 +++++++++++++++++++
|
|
|
c5bd88 |
1 file changed, 62 insertions(+)
|
|
|
c5bd88 |
|
|
|
c5bd88 |
diff --git a/biz.aQute.bndlib/src/aQute/bnd/junit/ConsoleLogger.java b/biz.aQute.bndlib/src/aQute/bnd/junit/ConsoleLogger.java
|
|
|
c5bd88 |
index 9c2591f..569b20e 100644
|
|
|
c5bd88 |
--- a/biz.aQute.bndlib/src/aQute/bnd/junit/ConsoleLogger.java
|
|
|
c5bd88 |
+++ b/biz.aQute.bndlib/src/aQute/bnd/junit/ConsoleLogger.java
|
|
|
c5bd88 |
@@ -15,9 +15,11 @@ import org.osgi.framework.ServiceFactory;
|
|
|
c5bd88 |
import org.osgi.framework.ServiceReference;
|
|
|
c5bd88 |
import org.osgi.framework.ServiceRegistration;
|
|
|
c5bd88 |
import org.osgi.service.log.LogEntry;
|
|
|
c5bd88 |
+import org.osgi.service.log.LogLevel;
|
|
|
c5bd88 |
import org.osgi.service.log.LogListener;
|
|
|
c5bd88 |
import org.osgi.service.log.LogReaderService;
|
|
|
c5bd88 |
import org.osgi.service.log.LogService;
|
|
|
c5bd88 |
+import org.osgi.service.log.Logger;
|
|
|
c5bd88 |
|
|
|
c5bd88 |
@Deprecated // see biz.aQute.bnd.remote.junit
|
|
|
c5bd88 |
public class ConsoleLogger implements LogReaderService {
|
|
|
c5bd88 |
@@ -76,6 +78,36 @@ public class ConsoleLogger implements LogReaderService {
|
|
|
c5bd88 |
return time;
|
|
|
c5bd88 |
}
|
|
|
c5bd88 |
|
|
|
c5bd88 |
+ @Override
|
|
|
c5bd88 |
+ public LogLevel getLogLevel() {
|
|
|
c5bd88 |
+ // TODO Auto-generated method stub
|
|
|
c5bd88 |
+ return null;
|
|
|
c5bd88 |
+ }
|
|
|
c5bd88 |
+
|
|
|
c5bd88 |
+ @Override
|
|
|
c5bd88 |
+ public String getLoggerName() {
|
|
|
c5bd88 |
+ // TODO Auto-generated method stub
|
|
|
c5bd88 |
+ return null;
|
|
|
c5bd88 |
+ }
|
|
|
c5bd88 |
+
|
|
|
c5bd88 |
+ @Override
|
|
|
c5bd88 |
+ public long getSequence() {
|
|
|
c5bd88 |
+ // TODO Auto-generated method stub
|
|
|
c5bd88 |
+ return 0;
|
|
|
c5bd88 |
+ }
|
|
|
c5bd88 |
+
|
|
|
c5bd88 |
+ @Override
|
|
|
c5bd88 |
+ public String getThreadInfo() {
|
|
|
c5bd88 |
+ // TODO Auto-generated method stub
|
|
|
c5bd88 |
+ return null;
|
|
|
c5bd88 |
+ }
|
|
|
c5bd88 |
+
|
|
|
c5bd88 |
+ @Override
|
|
|
c5bd88 |
+ public StackTraceElement getLocation() {
|
|
|
c5bd88 |
+ // TODO Auto-generated method stub
|
|
|
c5bd88 |
+ return null;
|
|
|
c5bd88 |
+ }
|
|
|
c5bd88 |
+
|
|
|
c5bd88 |
}
|
|
|
c5bd88 |
|
|
|
c5bd88 |
public class Facade implements LogService {
|
|
|
c5bd88 |
@@ -112,6 +144,36 @@ public class ConsoleLogger implements LogReaderService {
|
|
|
c5bd88 |
|
|
|
c5bd88 |
}
|
|
|
c5bd88 |
|
|
|
c5bd88 |
+ @Override
|
|
|
c5bd88 |
+ public Logger getLogger(String name) {
|
|
|
c5bd88 |
+ // TODO Auto-generated method stub
|
|
|
c5bd88 |
+ return null;
|
|
|
c5bd88 |
+ }
|
|
|
c5bd88 |
+
|
|
|
c5bd88 |
+ @Override
|
|
|
c5bd88 |
+ public Logger getLogger(Class clazz) {
|
|
|
c5bd88 |
+ // TODO Auto-generated method stub
|
|
|
c5bd88 |
+ return null;
|
|
|
c5bd88 |
+ }
|
|
|
c5bd88 |
+
|
|
|
c5bd88 |
+ @Override
|
|
|
c5bd88 |
+ public <L extends Logger> L getLogger(String name, Class<L> loggerType) {
|
|
|
c5bd88 |
+ // TODO Auto-generated method stub
|
|
|
c5bd88 |
+ return null;
|
|
|
c5bd88 |
+ }
|
|
|
c5bd88 |
+
|
|
|
c5bd88 |
+ @Override
|
|
|
c5bd88 |
+ public <L extends Logger> L getLogger(Class clazz, Class<L> loggerType) {
|
|
|
c5bd88 |
+ // TODO Auto-generated method stub
|
|
|
c5bd88 |
+ return null;
|
|
|
c5bd88 |
+ }
|
|
|
c5bd88 |
+
|
|
|
c5bd88 |
+ @Override
|
|
|
c5bd88 |
+ public <L extends Logger> L getLogger(Bundle bundle, String name, Class<L> loggerType) {
|
|
|
c5bd88 |
+ // TODO Auto-generated method stub
|
|
|
c5bd88 |
+ return null;
|
|
|
c5bd88 |
+ }
|
|
|
c5bd88 |
+
|
|
|
c5bd88 |
}
|
|
|
c5bd88 |
|
|
|
c5bd88 |
public ConsoleLogger(BundleContext context) {
|
|
|
c5bd88 |
--
|
|
|
c5bd88 |
2.20.1
|
|
|
c5bd88 |
|