How to configure the logging in Elasticsearch java API 1.5

I have an application using the java Elasticsearch API, version 1.5.1.

How can I configure the logging from this API?

Apparently it can be done with a file or directly in the code, but I can't find any example or documentation on it.