Custom Log4J Configuration file for Kafka
In order to use a custom Log4J configuration file and to override the default one, we need to add the details in -Dlog4j.configuration. Here is how you can update the configuration path:
As you can notice, we have also update the directory where logs are generated by overriding LOG_DIR.