Enable logging


(OlgaT) #1

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.


(Shay Banon) #2

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 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.


(system) #3