1) I have created a wrapper of log4j2 and used :
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.12.1</version>
</dependency>
2) Now, In application which consumes it , I have added :
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.12.1</version>
</dependency>
3) Another application which is build on point 2, uses logBack to log messages. And it also uses log4j2 to log messages.
When logging from logBack, it is able to log in console, but while logging from log4j2, it throws error of :
A required class was missing while executing LogManager.
What should be done for it?