diff options
author | Wojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com> | 2023-06-13 14:11:28 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-06-13 20:03:37 +0000 |
commit | 6c88709145ecf40500f5600d420e04c537f4c0a0 (patch) | |
tree | 5cca9ab49cb7335eb92ffe82025119b3441ac091 /ut-monitoring | |
parent | 64ae11abcdc2117c247a5364f2543144789ab175 (diff) | |
download | sonarqube-6c88709145ecf40500f5600d420e04c537f4c0a0.tar.gz sonarqube-6c88709145ecf40500f5600d420e04c537f4c0a0.zip |
[NOJIRA] Remove usage of deprecated Loggers. (#8527)
Diffstat (limited to 'ut-monitoring')
3 files changed, 9 insertions, 9 deletions
diff --git a/ut-monitoring/src/main/java/org/sonarqube/ut/aspects/AspectAssistant.java b/ut-monitoring/src/main/java/org/sonarqube/ut/aspects/AspectAssistant.java index 35db0f83480..bba4eba98c0 100644 --- a/ut-monitoring/src/main/java/org/sonarqube/ut/aspects/AspectAssistant.java +++ b/ut-monitoring/src/main/java/org/sonarqube/ut/aspects/AspectAssistant.java @@ -31,14 +31,14 @@ import java.time.ZoneId; import java.time.format.DateTimeFormatter; import java.util.function.Consumer; import org.aspectj.lang.ProceedingJoinPoint; -import org.sonar.api.utils.log.Logger; -import org.sonar.api.utils.log.Loggers; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class AspectAssistant { public static final String COMMIT_HASH = System.getenv("GIT_SHA1"); public static final String BUILD_NUMBER = System.getenv("BUILD_NUMBER"); - private static final Logger LOGGER = Loggers.get(AspectAssistant.class); + private static final Logger LOGGER = LoggerFactory.getLogger(AspectAssistant.class); private static final Path PATH = Paths.get("/tmp/ut-backend-monitoring.log"); private static final Gson GSON = new Gson(); diff --git a/ut-monitoring/src/main/java/org/sonarqube/ut/aspects/RunAftersAspect.java b/ut-monitoring/src/main/java/org/sonarqube/ut/aspects/RunAftersAspect.java index fd825238683..7f55513dab2 100644 --- a/ut-monitoring/src/main/java/org/sonarqube/ut/aspects/RunAftersAspect.java +++ b/ut-monitoring/src/main/java/org/sonarqube/ut/aspects/RunAftersAspect.java @@ -30,12 +30,12 @@ import org.junit.internal.runners.statements.InvokeMethod; import org.junit.internal.runners.statements.RunAfters; import org.junit.internal.runners.statements.RunBefores; import org.junit.runners.model.FrameworkMethod; -import org.sonar.api.utils.log.Logger; -import org.sonar.api.utils.log.Loggers; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; @Aspect("percflow(execution(void org.junit.internal.runners.statements.RunAfters.evaluate()))") public class RunAftersAspect { - private static final Logger logger = Loggers.get(RunAftersAspect.class); + private static final Logger logger = LoggerFactory.getLogger(RunAftersAspect.class); private String testClass = ""; private String testMethod = ""; diff --git a/ut-monitoring/src/main/java/org/sonarqube/ut/aspects/RunBeforesAspect.java b/ut-monitoring/src/main/java/org/sonarqube/ut/aspects/RunBeforesAspect.java index dedc84f01d5..8958d429e57 100644 --- a/ut-monitoring/src/main/java/org/sonarqube/ut/aspects/RunBeforesAspect.java +++ b/ut-monitoring/src/main/java/org/sonarqube/ut/aspects/RunBeforesAspect.java @@ -29,12 +29,12 @@ import org.aspectj.lang.annotation.Pointcut; import org.junit.internal.runners.statements.InvokeMethod; import org.junit.internal.runners.statements.RunBefores; import org.junit.runners.model.FrameworkMethod; -import org.sonar.api.utils.log.Logger; -import org.sonar.api.utils.log.Loggers; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; @Aspect("percflow(execution(void org.junit.internal.runners.statements.RunBefores.evaluate()))") public class RunBeforesAspect { - private static final Logger logger = Loggers.get(RunBeforesAspect.class); + private static final Logger logger = LoggerFactory.getLogger(RunBeforesAspect.class); private String testClass = ""; private String testMethod = ""; |