Hello dev, I have recently started working on the kafka. I am finding the log4j properties under config directory. We are using this log4j file from the respective daemon scripts. Ex: kaka-server-start.sh & zookeeper-start.sh scripts. I am not seeing any log appender for zookeeper daemon in the log4j properties. *IMO, we should add a log appender for zookeeper in the log4j properties file to redirect zookeeper logs to different file.*
I can find two things are here: 1) If I start zookeeper followed by kafka server then zookeeper logs will be printed on the console as it picks the tools-log4j.properties file. 2) If I start kafka server first and followed by zookeeper then it picks the log4j file as KAFKA_LOG4J_OPTS has already set by kafka server startup script. But still it prints the zookeeper logs on console only. Thanks, Raju B