summaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-02-15 23:32:14 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-02-19 12:02:10 +0100
commit7cf57c2495bd16c2e7056c0ff47fc962a8ff432f (patch)
treea4a0124029e70fbcc45d00429da495d0058b7a49 /sonar-core
parent6658f59ae96921016438eeeab136a4eb4e5703af (diff)
downloadsonarqube-7cf57c2495bd16c2e7056c0ff47fc962a8ff432f.tar.gz
sonarqube-7cf57c2495bd16c2e7056c0ff47fc962a8ff432f.zip
SONAR-5700 New logging API to remove coupling on SLF4J
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/computation/dbcleaner/DefaultPurgeTask.java12
-rw-r--r--sonar-core/src/main/java/org/sonar/core/purge/PurgeProfiler.java2
-rw-r--r--sonar-core/src/test/java/org/sonar/core/computation/dbcleaner/DefaultPurgeTaskTest.java8
-rw-r--r--sonar-core/src/test/java/org/sonar/core/purge/PurgeProfilerTest.java2
4 files changed, 16 insertions, 8 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/computation/dbcleaner/DefaultPurgeTask.java b/sonar-core/src/main/java/org/sonar/core/computation/dbcleaner/DefaultPurgeTask.java
index cab746aa79b..d9e7f18193b 100644
--- a/sonar-core/src/main/java/org/sonar/core/computation/dbcleaner/DefaultPurgeTask.java
+++ b/sonar-core/src/main/java/org/sonar/core/computation/dbcleaner/DefaultPurgeTask.java
@@ -21,14 +21,18 @@
package org.sonar.core.computation.dbcleaner;
import com.google.common.annotations.VisibleForTesting;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import org.sonar.api.CoreProperties;
import org.sonar.api.config.Settings;
import org.sonar.api.resources.Qualifiers;
import org.sonar.api.utils.TimeUtils;
+import org.sonar.api.utils.log.Logger;
+import org.sonar.api.utils.log.Loggers;
import org.sonar.core.computation.dbcleaner.period.DefaultPeriodCleaner;
-import org.sonar.core.purge.*;
+import org.sonar.core.purge.IdUuidPair;
+import org.sonar.core.purge.PurgeConfiguration;
+import org.sonar.core.purge.PurgeDao;
+import org.sonar.core.purge.PurgeListener;
+import org.sonar.core.purge.PurgeProfiler;
import org.sonar.core.resource.ResourceDao;
import org.sonar.core.resource.ResourceDto;
import org.sonar.plugins.dbcleaner.api.PurgeTask;
@@ -39,7 +43,7 @@ import static org.sonar.core.purge.PurgeConfiguration.newDefaultPurgeConfigurati
* @since 2.14
*/
public class DefaultPurgeTask implements PurgeTask {
- private static final Logger LOG = LoggerFactory.getLogger(DefaultPurgeTask.class);
+ private static final Logger LOG = Loggers.get(DefaultPurgeTask.class);
private final PurgeProfiler profiler;
private final PurgeDao purgeDao;
private final ResourceDao resourceDao;
diff --git a/sonar-core/src/main/java/org/sonar/core/purge/PurgeProfiler.java b/sonar-core/src/main/java/org/sonar/core/purge/PurgeProfiler.java
index 41d68ae2f64..e3552b5b66c 100644
--- a/sonar-core/src/main/java/org/sonar/core/purge/PurgeProfiler.java
+++ b/sonar-core/src/main/java/org/sonar/core/purge/PurgeProfiler.java
@@ -20,8 +20,8 @@
package org.sonar.core.purge;
import com.google.common.annotations.VisibleForTesting;
-import org.slf4j.Logger;
import org.sonar.api.utils.TimeUtils;
+import org.sonar.api.utils.log.Logger;
import java.util.ArrayList;
import java.util.Collections;
diff --git a/sonar-core/src/test/java/org/sonar/core/computation/dbcleaner/DefaultPurgeTaskTest.java b/sonar-core/src/test/java/org/sonar/core/computation/dbcleaner/DefaultPurgeTaskTest.java
index a65dda0382d..35d53aba1bf 100644
--- a/sonar-core/src/test/java/org/sonar/core/computation/dbcleaner/DefaultPurgeTaskTest.java
+++ b/sonar-core/src/test/java/org/sonar/core/computation/dbcleaner/DefaultPurgeTaskTest.java
@@ -20,7 +20,6 @@
package org.sonar.core.computation.dbcleaner;
-import ch.qos.logback.classic.Logger;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentMatcher;
@@ -29,8 +28,13 @@ import org.sonar.api.config.PropertyDefinitions;
import org.sonar.api.config.Settings;
import org.sonar.api.resources.Qualifiers;
import org.sonar.api.resources.Scopes;
+import org.sonar.api.utils.log.Logger;
import org.sonar.core.computation.dbcleaner.period.DefaultPeriodCleaner;
-import org.sonar.core.purge.*;
+import org.sonar.core.purge.IdUuidPair;
+import org.sonar.core.purge.PurgeConfiguration;
+import org.sonar.core.purge.PurgeDao;
+import org.sonar.core.purge.PurgeListener;
+import org.sonar.core.purge.PurgeProfiler;
import org.sonar.core.resource.ResourceDao;
import org.sonar.core.resource.ResourceDto;
diff --git a/sonar-core/src/test/java/org/sonar/core/purge/PurgeProfilerTest.java b/sonar-core/src/test/java/org/sonar/core/purge/PurgeProfilerTest.java
index cbbe9088e83..fa80b2ea735 100644
--- a/sonar-core/src/test/java/org/sonar/core/purge/PurgeProfilerTest.java
+++ b/sonar-core/src/test/java/org/sonar/core/purge/PurgeProfilerTest.java
@@ -21,7 +21,7 @@ package org.sonar.core.purge;
import org.junit.Before;
import org.junit.Test;
-import org.slf4j.Logger;
+import org.sonar.api.utils.log.Logger;
import static org.mockito.Matchers.contains;
import static org.mockito.Mockito.mock;