Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2018-04-26 14:00:49 -0400
committerslewis2018-04-26 15:21:16 -0400
commita1153682e7ad8e06b5b76742788e3ca83be5a18a (patch)
treec4a5d20a259706456cc858ebb5e511e2390b09f6 /framework/bundles
parent96dc3bf3eb3f8d8b7772ab603f6f9f5fdc7535f8 (diff)
downloadorg.eclipse.ecf-a1153682e7ad8e06b5b76742788e3ca83be5a18a.tar.gz
org.eclipse.ecf-a1153682e7ad8e06b5b76742788e3ca83be5a18a.tar.xz
org.eclipse.ecf-a1153682e7ad8e06b5b76742788e3ca83be5a18a.zip
Fix for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=534087
This bug is caused by the new classes in OSGi R7 org.osgi.service.log package, and so these changes are dependent on using osgiR7. Change-Id: Ie613487d51aa3715d6d2969a36025dbb0fe9dbe4
Diffstat (limited to 'framework/bundles')
-rw-r--r--framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java28
1 files changed, 24 insertions, 4 deletions
diff --git a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java
index 48159f07d..5524d06dd 100644
--- a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java
+++ b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java
@@ -13,8 +13,10 @@ package org.eclipse.ecf.core.util;
import java.text.SimpleDateFormat;
import java.util.Date;
+import org.osgi.framework.Bundle;
import org.osgi.framework.ServiceReference;
import org.osgi.service.log.LogService;
+import org.osgi.service.log.Logger;
/**
*
@@ -83,8 +85,7 @@ public class SystemLogService implements LogService {
/*
* (non-Javadoc)
*
- * @see
- * org.osgi.service.log.LogService#log(org.osgi.framework.ServiceReference,
+ * @see org.osgi.service.log.LogService#log(org.osgi.framework.ServiceReference,
* int, java.lang.String)
*/
public void log(@SuppressWarnings("rawtypes") ServiceReference sr, int level, String message) {
@@ -94,12 +95,31 @@ public class SystemLogService implements LogService {
/*
* (non-Javadoc)
*
- * @see
- * org.osgi.service.log.LogService#log(org.osgi.framework.ServiceReference,
+ * @see org.osgi.service.log.LogService#log(org.osgi.framework.ServiceReference,
* int, java.lang.String, java.lang.Throwable)
*/
public void log(@SuppressWarnings("rawtypes") ServiceReference sr, int level, String message, Throwable exception) {
doLog(sr, level, message, exception);
}
+ public Logger getLogger(String name) {
+ throw new UnsupportedOperationException();
+ }
+
+ public Logger getLogger(Class<?> clazz) {
+ throw new UnsupportedOperationException();
+ }
+
+ public <L extends Logger> L getLogger(String name, Class<L> loggerType) {
+ throw new UnsupportedOperationException();
+ }
+
+ public <L extends Logger> L getLogger(Class<?> clazz, Class<L> loggerType) {
+ throw new UnsupportedOperationException();
+ }
+
+ public <L extends Logger> L getLogger(Bundle bundle, String name, Class<L> loggerType) {
+ throw new UnsupportedOperationException();
+ }
+
}

Back to the top