I think what you are trying to say is
1. Your app needs to use Log4J 1.x.
2. You are trying to include something that is using the Log4J 2 api.
The problem you are encountering is that you have provided 2 implementations of
the Log4J api - log4j-to-slf4j and log4j-core. You can only have one of
In an application using log4j with slf4j, I am trying to use a dependency
(elasticsearch in this) which depends on log4j2.
The application's logging dependency looks like this-
org.elasticsearch
elasticsearch
5.6.16
org.elasticsearch.client
transport
5.6.16