# How to configure the logging in Elasticsearch java API 1.5

**URL:** https://discuss.elastic.co/t/how-to-configure-the-logging-in-elasticsearch-java-api-1-5/60395
**Category:** Elasticsearch
**Created:** [September 13, 2016, 3:00pm UTC](https://discuss.elastic.co/t/how-to-configure-the-logging-in-elasticsearch-java-api-1-5/60395 "2016-09-13T15:00:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![baud](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/baud/32/10129_2.png) [@baud](https://discuss.elastic.co/u/baud)
#### Post date: [September 13, 2016, 3:00pm UTC](https://discuss.elastic.co/t/how-to-configure-the-logging-in-elasticsearch-java-api-1-5/60395/1 "2016-09-13T15:00:06Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 10:20pm UTC](https://discuss.elastic.co/t/how-to-configure-the-logging-in-elasticsearch-java-api-1-5/60395/2 "2017-07-05T22:20:39Z")

</div>


