Elasticsearch java API log configuration

I am developing an application connecting to Elasticsearch with the java API.
I am using lo4j2 to deal with logging.

I want to retrieve the messages logged by the java API, but I don't know how to configure to it.

Does anyone has any idea how to do

Version of the java API: 1.4.5
From my pom.xml:

  <dependency>
  	<groupId>org.elasticsearch</groupId>
  	<artifactId>elasticsearch</artifactId>
  	<version>1.4.5</version>
  </dependency>