# Enable logging

**URL:** <https://discuss.elastic.co/t/enable-logging/5099>\
**Category:** Elasticsearch\
**Created:** [August 9, 2011, 11:56am UTC](https://discuss.elastic.co/t/enable-logging/5099 "2011-08-09T11:56:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![OlgaT](https://avatars.discourse-cdn.com/v4/letter/o/fbc32d/32.png) [@OlgaT](https://discuss.elastic.co/u/OlgaT)\
**Post date:** [August 9, 2011, 11:56am UTC](https://discuss.elastic.co/t/enable-logging/5099/1 "2011-08-09T11:56:35Z")

</div>

Hi,

I run elasticsearch server embedded in our application.  
The elasticsearch.yml and logging.yml are in the classpath.

However I can't see the logs.  
What can be a problem?  
We use log4j in our application and I would like to use it for  
elasticsearch logging.  
I see in the debug that Slf4jESLogger is created.

Thanks,  
Olga.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [August 9, 2011, 12:25pm UTC](https://discuss.elastic.co/t/enable-logging/5099/2 "2011-08-09T12:25:43Z")

</div>

When you embed elasticsearch in your application, then it won't do any  
configuration for the logging system, it will simply rely on what you  
configure for your logging system. It will automatically delegate based on  
the logging libraries you have, and if you have slf4j, then it will use that  
one, if not, and you have log4j, it will use log4j.

On Tue, Aug 9, 2011 at 2:56 PM, OlgaT [tubmano@gmail.com](mailto:tubmano@gmail.com) wrote:

> Hi,
> 
> I run elasticsearch server embedded in our application.  
> The elasticsearch.yml and logging.yml are in the classpath.
> 
> However I can't see the logs.  
> What can be a problem?  
> We use log4j in our application and I would like to use it for  
> elasticsearch logging.  
> I see in the debug that Slf4jESLogger is created.
> 
> Thanks,  
> Olga.

---

<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 6, 2017, 3:57am UTC](https://discuss.elastic.co/t/enable-logging/5099/3 "2017-07-06T03:57:47Z")

</div>


