# StatusLogger Multiple logging implementations found warn message on adding elasticsearch jar

**URL:** <https://discuss.elastic.co/t/statuslogger-multiple-logging-implementations-found-warn-message-on-adding-elasticsearch-jar/196761>\
**Category:** Elasticsearch\
**Created:** [August 26, 2019, 11:58am UTC](https://discuss.elastic.co/t/statuslogger-multiple-logging-implementations-found-warn-message-on-adding-elasticsearch-jar/196761 "2019-08-26T11:58:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deb/32/46162_2.png) [@Deb](https://discuss.elastic.co/u/Deb)\
**Post date:** [August 26, 2019, 11:58am UTC](https://discuss.elastic.co/t/statuslogger-multiple-logging-implementations-found-warn-message-on-adding-elasticsearch-jar/196761/1 "2019-08-26T11:58:29Z")

</div>

In an application using log4j with slf4j, I am trying to use elasticsearch jar which depends on log4j2.

The application's logging dependency looks like this-

```auto
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>1.7.25</version>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>1.7.25</version>
    </dependency>
    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.17</version>
    </dependency>

```

The application is using its own `log4j.xml` and has some custom appenders of log4j so it cannot be migrated to log4j2 without rewriting the appenders.

Added the below dependencies as suggested in elasticsearch [documentation](https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/_using_another_logger.html) for using a different logger other than log4j2.

```auto
    <dependency>
        <groupId>org.elasticsearch</groupId>
        <artifactId>elasticsearch</artifactId>
        <version>${es.version}</version>
    </dependency>
    <dependency>
        <groupId>org.elasticsearch.client</groupId>
        <artifactId>transport</artifactId>
        <version>${es.version}</version>
    </dependency>
    <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-to-slf4j</artifactId>
        <version>2.11.1</version>
    </dependency>

```

But now on starting the application, I am seeing some warnings like below

```auto
DEBUG StatusLogger org.slf4j.helpers.Log4jLoggerFactory is not on classpath. Good!
DEBUG StatusLogger Using ShutdownCallbackRegistry class org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry
WARN StatusLogger Multiple logging implementations found:
Factory: org.apache.logging.log4j.core.impl.Log4jContextFactory, Weighting: 10
Factory: org.apache.logging.slf4j.SLF4JLoggerContextFactory, Weighting: 15
Using factory: org.apache.logging.slf4j.SLF4JLoggerContextFactory

```

Can someone let me know what does this warning denote? How can I remove it?

---

<div class="post-metadata">

**Author:** ![Deb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deb/32/46162_2.png) [@Deb](https://discuss.elastic.co/u/Deb)\
**Post date:** [August 28, 2019, 9:58am UTC](https://discuss.elastic.co/t/statuslogger-multiple-logging-implementations-found-warn-message-on-adding-elasticsearch-jar/196761/2 "2019-08-28T09:58:38Z")

</div>

The same has been posted in [stackoverflow](https://stackoverflow.com/questions/57657475/statuslogger-multiple-logging-implementations-found) also. I did not get any reply there also. Anyone any thoughts on this?

---

<div class="post-metadata">

**Author:** ![Deb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deb/32/46162_2.png) [@Deb](https://discuss.elastic.co/u/Deb)\
**Post date:** [August 29, 2019, 5:51pm UTC](https://discuss.elastic.co/t/statuslogger-multiple-logging-implementations-found-warn-message-on-adding-elasticsearch-jar/196761/3 "2019-08-29T17:51:32Z")

</div>

This has been answered in [stackoverflow](https://stackoverflow.com/a/57715494/785523).

---

<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:** [September 26, 2019, 5:51pm UTC](https://discuss.elastic.co/t/statuslogger-multiple-logging-implementations-found-warn-message-on-adding-elasticsearch-jar/196761/4 "2019-09-26T17:51:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
