Configuring log levels for command line tools
Learn how to change the logging level of command line tools.
- Create a copy of the
log4j2.propertiesfile that the tools use.You are free to change the location where the copy gets created.
cp /etc/kafka/conf/tools-log4j2.properties /var/tmp
- Open the copied file and change the value of the
root.loggerproperty as required.For example:
- Pass the location of the newly created properties file as a JVM
parameter.You can do this by adding
KAFKA_OPTSvariable. For example: