Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions bin/kafka-rest-run-class
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ done
if [ "x$KAFKAREST_LOG4J_OPTS" = "x" ]; then
# Test for files from dev -> packages so this will work as expected in dev if you have packages
# installed
if [ -e "$base_dir/config/log4j.properties" ]; then # Dev environment
KAFKAREST_LOG4J_OPTS="-Dlog4j.configuration=file:$base_dir/config/log4j.properties"
elif [ -e "$base_dir/etc/kafka-rest/log4j.properties" ]; then # Simple zip file layout
KAFKAREST_LOG4J_OPTS="-Dlog4j.configuration=file:$base_dir/etc/kafka-rest/log4j.properties"
elif [ -e "/etc/kafka-rest/log4j.properties" ]; then # Normal install layout
KAFKAREST_LOG4J_OPTS="-Dlog4j.configuration=file:/etc/kafka-rest/log4j.properties"
if [ -e "$base_dir/config/log4j2.yaml" ]; then # Dev environment
KAFKAREST_LOG4J_OPTS="-Dlog4j.configuration=file:$base_dir/config/log4j2.yaml"
elif [ -e "$base_dir/etc/kafka-rest/log4j2.yaml" ]; then # Simple zip file layout
KAFKAREST_LOG4J_OPTS="-Dlog4j.configuration=file:$base_dir/etc/kafka-rest/log4j2.yaml"
elif [ -e "/etc/kafka-rest/log4j2.yaml" ]; then # Normal install layout
KAFKAREST_LOG4J_OPTS="-Dlog4j.configuration=file:/etc/kafka-rest/log4j2.yaml"
fi
fi

Expand Down
5 changes: 0 additions & 5 deletions kafka-rest/src/main/resources/log4j.properties

This file was deleted.

13 changes: 13 additions & 0 deletions kafka-rest/src/main/resources/log4j2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Configuration:
name: "Log4j2"
Appenders:
Console:
name: "STDOUT"
target: "SYSTEM_OUT"
PatternLayout:
pattern: "[%d] %p %m (%c:%L)%n"
Loggers:
Root:
level: "INFO"
AppenderRef:
ref: "STDOUT"