You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:22:28 UTC

[sling-org-apache-sling-commons-logservice] annotated tag org.apache.sling.commons.logservice-1.0.6 created (now 30f888d)

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a change to annotated tag org.apache.sling.commons.logservice-1.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-logservice.git.


      at 30f888d  (tag)
 tagging 69a7b6a03f0528e663ac6bac338bc48b705d068e (commit)
      by Robert Munteanu
      on Wed Oct 7 11:35:59 2015 +0000

- Log -----------------------------------------------------------------
org.apache.sling.commons.logservice-1.0.6
-----------------------------------------------------------------------

This annotated tag includes the following new commits:

     new 3852c89  SLING-2224 Create new LogService bundle
     new 035cdda  SLING-2235 Use size limited, access ordered cache for bundle loggers and remove entries for uninstalled bundles
     new fb9e692  [maven-release-plugin] prepare release org.apache.sling.commons.logservice-1.0.0
     new a6aecd4  [maven-release-plugin] prepare for next development iteration
     new 25934d9  SLING-2480 : Add config for maven-sling-plugin to m2e configuration
     new a9c2ce2  SLING-2483 Use provide:=true instead of version macros to define the proper import version range. Also fix a small glitch in the parent pom relativePath of the framework-extension-ws bundle
     new f848b23  SLING-2486 Log bundle event synchronously and add logging for STARTING and STOPPING events
     new 9aeedd3  Update to latest parent pom
     new 68508dc  Use released versions
     new 9bc4173  [maven-release-plugin] prepare release org.apache.sling.commons.logservice-1.0.2
     new e2a66b5  [maven-release-plugin] prepare for next development iteration
     new 43434e5  Use latest releases and update to new parent pom
     new ac3059c  Update to latest parent pom and use latest releases in launchpad
     new 466232e  Correct reactor pom and update to parent pom 16
     new d7f9979  Update to latest parent pom
     new 06e00cc  Update to parent pom 18
     new 092d09f  Update to parent pom v19
     new 589800b  Updated to parent version 20
     new 33221bc  Update to Sling Parent POM 22 with baselining enabled
     new 8ac93b8  SLING-4510 : Sling LogService could provide more usable output. Apply patch from David Bosschaert
     new 8d5e29f  [maven-release-plugin] prepare release org.apache.sling.commons.logservice-1.0.4
     new be233a7  [maven-release-plugin] prepare for next development iteration
     new 4634a15  SLING-4563 : Log start level number on STARTLEVEL CHANGED event
     new bcb2080  SLING-4563 : Log start level number on STARTLEVEL CHANGED event
     new 2f9af52  SLING-4698 - Set parent.relativePath to empty for all modules
     new 0669561  Update to Sling Parent 23
     new 77c8430  set parent version to 24 and add empty relativePath where missing
     new f4ef404  Update the main reactor to parent 25
     new bd4d5f6  [maven-release-plugin] prepare release org.apache.sling.commons.logservice-1.0.6
     new 69a7b6a  [maven-release-plugin] copy for tag org.apache.sling.commons.logservice-1.0.6

The 30 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


-- 
To stop receiving notification emails like this one, please contact
['"commits@sling.apache.org" <co...@sling.apache.org>'].

[sling-org-apache-sling-commons-logservice] 06/09: set parent version to 24 and add empty relativePath where missing

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.commons.logservice-1.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-logservice.git

commit 77c8430f04299d124adf3705a4911c04286e91e9
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Tue Jul 7 08:09:17 2015 +0000

    set parent version to 24 and add empty relativePath where missing
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/logservice@1689593 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index db41fdb..e58fd07 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling</artifactId>
-        <version>23</version>
+        <version>24</version>
         <relativePath/>
     </parent>
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-commons-logservice] 09/09: [maven-release-plugin] copy for tag org.apache.sling.commons.logservice-1.0.6

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.commons.logservice-1.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-logservice.git

commit 69a7b6a03f0528e663ac6bac338bc48b705d068e
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Wed Oct 7 11:35:59 2015 +0000

    [maven-release-plugin] copy for tag org.apache.sling.commons.logservice-1.0.6
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.commons.logservice-1.0.6@1707261 13f79535-47bb-0310-9956-ffa450edef68

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-commons-logservice] 08/09: [maven-release-plugin] prepare release org.apache.sling.commons.logservice-1.0.6

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.commons.logservice-1.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-logservice.git

commit bd4d5f62ede1eb75a2dfa8a24a553db3adea4c1e
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Wed Oct 7 11:35:46 2015 +0000

    [maven-release-plugin] prepare release org.apache.sling.commons.logservice-1.0.6
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/logservice@1707260 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml
index 7e95e5c..fe2b0bf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,11 +24,11 @@
         <groupId>org.apache.sling</groupId>
         <artifactId>sling</artifactId>
         <version>25</version>
-        <relativePath/>
+        <relativePath />
     </parent>
 
     <artifactId>org.apache.sling.commons.logservice</artifactId>
-    <version>1.0.5-SNAPSHOT</version>
+    <version>1.0.6</version>
     <packaging>bundle</packaging>
 
     <name>Apache Sling OSGi LogService Implementation</name>
@@ -38,9 +38,9 @@
     </description>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/bundles/commons/logservice</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/logservice</developerConnection>
-        <url>http://svn.apache.org/viewvc/sling/trunk/bundles/commons/logservice</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.commons.logservice-1.0.6</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.commons.logservice-1.0.6</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/tags/org.apache.sling.commons.logservice-1.0.6</url>
     </scm>
     
     <build>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-commons-logservice] 05/09: Update to Sling Parent 23

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.commons.logservice-1.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-logservice.git

commit 0669561bf2f41a23e83fef384193237732b8ff84
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu Jun 25 13:08:16 2015 +0000

    Update to Sling Parent 23
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/logservice@1687500 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 0099001..db41fdb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling</artifactId>
-        <version>22</version>
+        <version>23</version>
         <relativePath/>
     </parent>
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-commons-logservice] 04/09: SLING-4698 - Set parent.relativePath to empty for all modules

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.commons.logservice-1.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-logservice.git

commit 2f9af52f3e651bf716ea7c338850d7bda266b2de
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu May 7 10:14:40 2015 +0000

    SLING-4698 - Set parent.relativePath to empty for all modules
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/logservice@1678154 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 01cbc8b..0099001 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
         <groupId>org.apache.sling</groupId>
         <artifactId>sling</artifactId>
         <version>22</version>
-        <relativePath>../../../parent/pom.xml</relativePath>
+        <relativePath/>
     </parent>
 
     <artifactId>org.apache.sling.commons.logservice</artifactId>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-commons-logservice] 07/09: Update the main reactor to parent 25

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.commons.logservice-1.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-logservice.git

commit f4ef404343cecb6509e60859a2ec1ba07b9179ed
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Mon Oct 5 10:03:45 2015 +0000

    Update the main reactor to parent 25
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/logservice@1706780 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index e58fd07..7e95e5c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling</artifactId>
-        <version>24</version>
+        <version>25</version>
         <relativePath/>
     </parent>
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-commons-logservice] 01/09: [maven-release-plugin] prepare for next development iteration

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.commons.logservice-1.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-logservice.git

commit be233a7e59252361b18f06d8ab8f27760d3e77d5
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon Mar 30 12:24:52 2015 +0000

    [maven-release-plugin] prepare for next development iteration
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/logservice@1670075 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index a0e7d86..e0ed2cc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
     </parent>
 
     <artifactId>org.apache.sling.commons.logservice</artifactId>
-    <version>1.0.4</version>
+    <version>1.0.5-SNAPSHOT</version>
     <packaging>bundle</packaging>
 
     <name>Apache Sling OSGi LogService Implementation</name>
@@ -38,9 +38,9 @@
     </description>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.commons.logservice-1.0.4</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.commons.logservice-1.0.4</developerConnection>
-        <url>http://svn.apache.org/viewvc/sling/tags/org.apache.sling.commons.logservice-1.0.4</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/bundles/commons/logservice</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/logservice</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/trunk/bundles/commons/logservice</url>
     </scm>
     
     <build>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-commons-logservice] 02/09: SLING-4563 : Log start level number on STARTLEVEL CHANGED event

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.commons.logservice-1.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-logservice.git

commit 4634a15941ff5eb173b0fc9e2fa2c6544a3b2c10
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Apr 7 14:55:15 2015 +0000

    SLING-4563 : Log start level number on STARTLEVEL CHANGED event
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/logservice@1671863 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                                        |  2 +-
 .../apache/sling/commons/logservice/internal/LogSupport.java   | 10 ++++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index e0ed2cc..01cbc8b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -98,7 +98,7 @@
         <dependency>
             <groupId>org.osgi</groupId>
             <artifactId>org.osgi.core</artifactId>
-            <version>4.0.0</version>
+            <version>4.2.0</version>
         </dependency>
         <dependency>
             <groupId>org.osgi</groupId>
diff --git a/src/main/java/org/apache/sling/commons/logservice/internal/LogSupport.java b/src/main/java/org/apache/sling/commons/logservice/internal/LogSupport.java
index 78bf2b6..126e654 100644
--- a/src/main/java/org/apache/sling/commons/logservice/internal/LogSupport.java
+++ b/src/main/java/org/apache/sling/commons/logservice/internal/LogSupport.java
@@ -38,6 +38,7 @@ import org.osgi.service.component.ComponentConstants;
 import org.osgi.service.log.LogEntry;
 import org.osgi.service.log.LogListener;
 import org.osgi.service.log.LogService;
+import org.osgi.service.startlevel.StartLevel;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -347,7 +348,12 @@ public class LogSupport implements SynchronousBundleListener, ServiceListener,
                 message = "FrameworkEvent PACKAGES REFRESHED";
                 break;
             case FrameworkEvent.STARTLEVEL_CHANGED:
-                message = "FrameworkEvent STARTLEVEL CHANGED";
+                // bundle must be the system bundle
+                final Bundle bundle = event.getBundle();
+                // StartLevel service is always there
+                final ServiceReference slRef = bundle.getBundleContext().getServiceReference(StartLevel.class.getName());
+                final StartLevel sl = (StartLevel) bundle.getBundleContext().getService(slRef);
+                message = "FrameworkEvent STARTLEVEL CHANGED to " + sl.getStartLevel();
                 break;
             case FrameworkEvent.WARNING:
                 message = "FrameworkEvent WARNING";
@@ -359,7 +365,7 @@ public class LogSupport implements SynchronousBundleListener, ServiceListener,
                 message = "FrameworkEvent " + event.getType();
         }
 
-        LogEntry entry = new LogEntryImpl(event.getBundle(), null, level,
+        final LogEntry entry = new LogEntryImpl(event.getBundle(), null, level,
             message, exception);
         fireLogEvent(entry);
     }

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-commons-logservice] 03/09: SLING-4563 : Log start level number on STARTLEVEL CHANGED event

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.commons.logservice-1.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-logservice.git

commit bcb2080a03cbc8c93645b5ce7f2e804f6b34b5b4
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Apr 8 09:54:32 2015 +0000

    SLING-4563 : Log start level number on STARTLEVEL CHANGED event
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/logservice@1672051 13f79535-47bb-0310-9956-ffa450edef68
---
 .../sling/commons/logservice/internal/Activator.java     | 13 ++++++++++++-
 .../sling/commons/logservice/internal/LogSupport.java    | 16 +++++++---------
 .../commons/logservice/internal/LogSupportTest.java      | 10 +++++++---
 3 files changed, 26 insertions(+), 13 deletions(-)

diff --git a/src/main/java/org/apache/sling/commons/logservice/internal/Activator.java b/src/main/java/org/apache/sling/commons/logservice/internal/Activator.java
index 60766b5..60a4755 100644
--- a/src/main/java/org/apache/sling/commons/logservice/internal/Activator.java
+++ b/src/main/java/org/apache/sling/commons/logservice/internal/Activator.java
@@ -22,8 +22,10 @@ import java.util.Hashtable;
 import org.osgi.framework.BundleActivator;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.Constants;
+import org.osgi.framework.ServiceReference;
 import org.osgi.service.log.LogReaderService;
 import org.osgi.service.log.LogService;
+import org.osgi.service.startlevel.StartLevel;
 
 /**
  * The <code>Activator</code> class is the <code>BundleActivator</code> for the
@@ -36,11 +38,17 @@ public class Activator implements BundleActivator {
 
     private LogSupport logSupport;
 
+    /** Reference to the start level service. */
+    private ServiceReference startLevelRef;
+
     /**
      * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
      */
     public void start(final BundleContext context) throws Exception {
-        logSupport = new LogSupport();
+        // get start level service, it's always there (required by the spec)
+        startLevelRef = context.getServiceReference(StartLevel.class.getName());
+
+        logSupport = new LogSupport((StartLevel)context.getService(startLevelRef));
         context.addBundleListener(logSupport);
         context.addFrameworkListener(logSupport);
         context.addServiceListener(logSupport);
@@ -66,6 +74,9 @@ public class Activator implements BundleActivator {
      * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
      */
     public void stop(final BundleContext context) throws Exception {
+        if ( startLevelRef != null ) {
+            context.ungetService(startLevelRef);
+        }
         if (logSupport != null) {
             context.removeBundleListener(logSupport);
             context.removeFrameworkListener(logSupport);
diff --git a/src/main/java/org/apache/sling/commons/logservice/internal/LogSupport.java b/src/main/java/org/apache/sling/commons/logservice/internal/LogSupport.java
index 126e654..00be9c3 100644
--- a/src/main/java/org/apache/sling/commons/logservice/internal/LogSupport.java
+++ b/src/main/java/org/apache/sling/commons/logservice/internal/LogSupport.java
@@ -70,7 +70,7 @@ public class LogSupport implements SynchronousBundleListener, ServiceListener,
     // The loggers by bundle id used for logging messages originated from
     // specific bundles
     @SuppressWarnings("serial")
-    private Map<Long, Logger> loggers = new LinkedHashMap<Long, Logger>(16,
+    private final Map<Long, Logger> loggers = new LinkedHashMap<Long, Logger>(16,
         0.75f, true) {
         private static final int MAX_SIZE = 50;
 
@@ -81,11 +81,14 @@ public class LogSupport implements SynchronousBundleListener, ServiceListener,
     };
 
     // the worker thread actually sending LogEvents to LogListeners
-    private LogEntryDispatcher logEntryDispatcher;
+    private final LogEntryDispatcher logEntryDispatcher;
 
-    /* package */LogSupport() {
+    private final StartLevel startLevelService;
+
+    /* package */LogSupport(final StartLevel startLevelService) {
         logEntryDispatcher = new LogEntryDispatcher(this);
         logEntryDispatcher.start();
+        this.startLevelService = startLevelService;
     }
 
     /* package */void shutdown() {
@@ -348,12 +351,7 @@ public class LogSupport implements SynchronousBundleListener, ServiceListener,
                 message = "FrameworkEvent PACKAGES REFRESHED";
                 break;
             case FrameworkEvent.STARTLEVEL_CHANGED:
-                // bundle must be the system bundle
-                final Bundle bundle = event.getBundle();
-                // StartLevel service is always there
-                final ServiceReference slRef = bundle.getBundleContext().getServiceReference(StartLevel.class.getName());
-                final StartLevel sl = (StartLevel) bundle.getBundleContext().getService(slRef);
-                message = "FrameworkEvent STARTLEVEL CHANGED to " + sl.getStartLevel();
+                message = "FrameworkEvent STARTLEVEL CHANGED to " + this.startLevelService.getStartLevel();
                 break;
             case FrameworkEvent.WARNING:
                 message = "FrameworkEvent WARNING";
diff --git a/src/test/java/org/apache/sling/commons/logservice/internal/LogSupportTest.java b/src/test/java/org/apache/sling/commons/logservice/internal/LogSupportTest.java
index 8c19d32..269ff49 100644
--- a/src/test/java/org/apache/sling/commons/logservice/internal/LogSupportTest.java
+++ b/src/test/java/org/apache/sling/commons/logservice/internal/LogSupportTest.java
@@ -32,12 +32,14 @@ import org.osgi.framework.ServiceEvent;
 import org.osgi.framework.ServiceReference;
 import org.osgi.service.log.LogEntry;
 import org.osgi.service.log.LogService;
+import org.osgi.service.startlevel.StartLevel;
 import org.slf4j.Logger;
 
 public class LogSupportTest {
     @Test @SuppressWarnings("unchecked")
     public void testServiceEvent() throws Exception {
-        LogSupport ls = new LogSupport();
+        StartLevel startLevel = Mockito.mock(StartLevel.class);
+        LogSupport ls = new LogSupport(startLevel);
         Field lf = LogSupport.class.getDeclaredField("loggers");
         lf.setAccessible(true);
         Map<Long, Logger> loggers = (Map<Long, Logger>) lf.get(ls);
@@ -77,7 +79,8 @@ public class LogSupportTest {
         ServiceReference sr = Mockito.mock(ServiceReference.class);
         LogEntry le = new LogEntryImpl(b, sr, LogService.LOG_DEBUG, "test", null);
 
-        LogSupport ls = new LogSupport();
+        StartLevel startLevel = Mockito.mock(StartLevel.class);
+        LogSupport ls = new LogSupport(startLevel);
         Field lf = LogSupport.class.getDeclaredField("loggers");
         lf.setAccessible(true);
         Map<Long, Logger> loggers = (Map<Long, Logger>) lf.get(ls);
@@ -107,7 +110,8 @@ public class LogSupportTest {
         Exception e = new Exception();
         LogEntry le = new LogEntryImpl(b, null, LogService.LOG_ERROR, "my-error-msg", e);
 
-        LogSupport ls = new LogSupport();
+        StartLevel startLevel = Mockito.mock(StartLevel.class);
+        LogSupport ls = new LogSupport(startLevel);
         Field lf = LogSupport.class.getDeclaredField("loggers");
         lf.setAccessible(true);
         Map<Long, Logger> loggers = (Map<Long, Logger>) lf.get(ls);

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.