diff options
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 = ""; |