From ef15c4c2f8bcd05267dc50a37ab87e190179ead9 Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Wed, 28 Sep 2022 19:39:07 -0500 Subject: [PATCH] Use logback for tests (reduce logging) (#154) - Sets logback as test logging impl to respect logback-test.xml - Sets logback-test.xml to WARN by default - Sets testLogging.showStandardStreams to true to see all WARN logs --- spring-pulsar-spring-boot-autoconfigure/build.gradle | 4 ++++ spring-pulsar/build.gradle | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/spring-pulsar-spring-boot-autoconfigure/build.gradle b/spring-pulsar-spring-boot-autoconfigure/build.gradle index 17fe46d2..49be8114 100644 --- a/spring-pulsar-spring-boot-autoconfigure/build.gradle +++ b/spring-pulsar-spring-boot-autoconfigure/build.gradle @@ -22,3 +22,7 @@ dependencies { testImplementation 'org.testcontainers:junit-jupiter' testImplementation 'org.testcontainers:pulsar' } + +test { + testLogging.showStandardStreams = true +} diff --git a/spring-pulsar/build.gradle b/spring-pulsar/build.gradle index d30de282..df3ad448 100644 --- a/spring-pulsar/build.gradle +++ b/spring-pulsar/build.gradle @@ -25,8 +25,7 @@ dependencies { optional 'io.projectreactor:reactor-core' testImplementation 'org.junit.jupiter:junit-jupiter' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' - testRuntimeOnly 'org.apache.logging.log4j:log4j-core' - testRuntimeOnly 'org.apache.logging.log4j:log4j-jcl' + testRuntimeOnly 'ch.qos.logback:logback-classic:1.4.1' testImplementation 'io.micrometer:micrometer-observation-test' testImplementation 'io.micrometer:micrometer-tracing-bridge-brave' testImplementation 'io.micrometer:micrometer-tracing-test'