-
Notifications
You must be signed in to change notification settings - Fork 664
MINOR: Fix log4j2 config property #1376
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
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.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
|
🎉 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.
Pls raise the PR for 8.0.x branch.
bin/kafka-rest-run-class
Outdated
| # installed | ||
| if [ -e "$base_dir/config/log4j2.yaml" ]; then # Dev environment | ||
| KAFKAREST_LOG4J_OPTS="-Dlog4j.configuration=file:$base_dir/config/log4j2.yaml" | ||
| KAFKAREST_LOG4J_OPTS="-Dlog4j2.configurationFile=file:$base_dir/config/log4j2.yaml" |
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.
Should we change the variable here and above to either KAFKAREST_LOG4J2_OPTS or use logger for naming consistency? Also # logj4 settings the comment above should read log4j2/logger settings.
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.
AK uses KAFKA_LOG4J_OPTS and we're already using log4j logging. Leaving this as KAFKAREST_LOG4J_OPTS isn't too bad imo.
d59cd7c to
1298a58
Compare
|
Verified that logs were saved to |
Use log4j2 property name.
With the changes in this PR, kafka-rest logs are saved to
/path/to/kafka-rest/logs/kafka-rest.logwhen runningLOG_DIR=/path/to/kafka-rest ./bin/kafka-rest-start ./config/kafka-rest.properties. IfLOG_DIRis not set, logs are saved tologs/kafka-rest.login the current working directory.Follow up of #1368