Skip to content

Commit

Permalink
fix: add logging to integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaakola-aiven committed May 3, 2024
1 parent 72090b3 commit 7c142d0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ publishing {
}

val kafkaVersion = "2.2.0"
val slf4jVersion = "1.7.36"
val slf4jVersion = "2.0.13"

val avroVersion = "1.8.1"
// Version 1.8.1 brings Jackson 1.9.x/org.codehaus.jackson package for Avro and Confluent Platform 4.1.4.
Expand Down Expand Up @@ -190,6 +190,7 @@ dependencies {
integrationTestRuntimeOnly("io.confluent:kafka-avro-serializer:$confluentPlatformVersion")
integrationTestRuntimeOnly("io.confluent:kafka-connect-avro-converter:$confluentPlatformVersion")
integrationTestRuntimeOnly("io.confluent:kafka-json-serializer:$confluentPlatformVersion")
integrationTestRuntimeOnly("org.slf4j:slf4j-log4j12:$slf4jVersion")

integrationTestImplementation("org.apache.kafka:connect-runtime:$kafkaVersion")
integrationTestImplementation("com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion")
Expand Down
20 changes: 20 additions & 0 deletions src/integrationTest/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
##
# Copyright 2024 Aiven Oy
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##
log4j.rootLogger=INFO, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[%d] %C %p %m (%c:%L)%n
log4j.logger.org.apache.kafka=ERROR

0 comments on commit 7c142d0

Please sign in to comment.