Log Description
If an application developed based on Elasticsearch APIs is faulty, you only need to pay attention to the logs about abnormal functions on the client. Elasticsearch logs are printed using Log4j. You can view log details by setting the log level in the log4j.properties configuration file to DEBUG. In example code, the default log level in log4j.properties is INFO. You can change the log level value as required. For the current configuration, log4j.rootLogger is set to INFO,console. You can change the log4j.rootLogger value to DEBUG,console.
The log4j.properties file is called only by the sample code. A new file is needed for a formal program.

