Skip to content

Commit 6c3bff3

Browse files
authored
Update log4j used by the java console to 2.17 (#80)
* Update log4j used by the java console to 2.17 * Update build.gradle * Update Local.md Specify the required Gradle version in prerequisites
1 parent 84f5d7f commit 6c3bff3

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

kafka-java-console-sample/build.gradle

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ repositories {
3636

3737
dependencies {
3838
implementation 'org.apache.kafka:kafka-clients:2.7.+'
39-
implementation 'log4j:log4j:1.2.17'
40-
implementation 'org.slf4j:slf4j-log4j12:1.7.25'
39+
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.+'
40+
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.+'
41+
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.+'
4142
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.+'
4243
}
4344

kafka-java-console-sample/docs/Local.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ We will not discuss establishing a connection from your laptop to Event Streams
2020
2. **If you don't already have them, install the following prerequisites:**
2121

2222
* [git](https://git-scm.com/)
23-
* [Gradle](https://gradle.org/)
23+
* [Gradle 7 or higher](https://gradle.org/)
2424
* Java 8 or higher
2525

2626

@@ -133,4 +133,4 @@ We will not discuss establishing a connection from your laptop to Event Streams
133133
When the producer starts, messages are produced to the topic. Messages are then consumed from the topic by the consuming application.
134134
You can verify the successful flow of messages when you see `INFO Message consumed` from the consumer.
135135

136-
The sample runs indefinitely until you stop it. To stop the process, run an exit command `Ctrl+C`.
136+
The sample runs indefinitely until you stop it. To stop the process, run an exit command `Ctrl+C`.

kafka-java-console-sample/src/main/resources/log4j.properties

-7
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
rootLogger.level=info
2+
rootLogger.appenderRef.console.ref=STDOUT
3+
4+
appender.console.type=Console
5+
appender.console.name=STDOUT
6+
appender.console.layout.type=PatternLayout
7+
appender.console.layout.pattern=[%d] %p %m (%c)%n

0 commit comments

Comments
 (0)