-
Notifications
You must be signed in to change notification settings - Fork 664
KNET-18079: Migrate reload4j (log4j1) to log4j2 #1368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
🎉 All Contributor License Agreements have been signed. Ready to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates the project’s logging framework from slf4j to Log4j2 in accordance with the upgrade in log4j2. The changes primarily update import statements and logger instantiations across several modules.
Reviewed Changes
Copilot reviewed 29 out of 33 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| kafka-rest/src/main/java/io/confluent/kafkarest/response/StreamingResponse.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/resources/AsyncResponses.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/requestlog/CustomLog.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/converters/ProtobufConverter.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/converters/JsonSchemaConverter.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/converters/AvroConverter.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/controllers/ReplicaManagerImpl.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/controllers/ProduceControllerImpl.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/controllers/PartitionManagerImpl.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/controllers/ConsumerLagManagerImpl.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/controllers/ConsumerGroupLagSummaryManagerImpl.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/common/KafkaFutures.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/KafkaRestMain.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/KafkaRestConfig.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/KafkaRestApplication.java | Updated logger imports and instantiation |
| kafka-rest/src/main/java/io/confluent/kafkarest/DefaultKafkaRestContext.java | Updated logger imports and instantiation |
Files not reviewed (4)
- checkstyle/import_control.xml: Language not supported
- config/log4j.properties: Language not supported
- config/log4j2.xml: Language not supported
- kafka-rest/pom.xml: Language not supported
Comments suppressed due to low confidence (1)
kafka-rest/src/main/java/io/confluent/kafkarest/resources/AsyncResponses.java:91
- The logger is using AsyncResponse.class instead of AsyncResponses.class, which may lead to confusion when identifying log entries. Consider updating the logger instantiation to use AsyncResponses.class.
private static final Logger log = LogManager.getLogger(AsyncResponse.class);
|
[minor] the title should be migrate from reload4j (log4j1) to log4j2 |
kafka-rest/src/main/java/io/confluent/kafkarest/DefaultKafkaRestContext.java
Show resolved
Hide resolved
434d3f1 to
3919865
Compare
|
reload4j dependency is not included anymore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Uh oh!
There was an error while loading. Please reload this page.