title: Caused by: org.apache.logging.log4j.LoggingException: log4j-slf4j-impl cannot be present with log4j-to-slf4j Issue
body: <p>I am writing Junits to test my logs. I am using LogCaptor. I have attached my actual method and my testcases along with pom.xml.</p>
  <p>This is my method where i have logs defined.</p>
  <pre><code>@Override
  public ApplicationResponse createApplication (final String serviceId, final String appId) throws KMSException     {
      log.debug(&quot;Entering createApplication&quot;);
      try {
          final Application application =
              applicationOperations.createApplication(appId, serviceId);
          return applicationResponse(application);
      }
      catch (KMSCommonException exception) {
          throw new KMSInternalServerErrorException(&quot;Not able to create application&quot;, exception);
      }
  }
  </code></pre>
  <p>This is my <code>test method</code> to test Loggers :</p>
  <pre><code>@Test
  public void testCreateApplicationLogger () throws KMSException {
      String expectedInfoMessage = &quot;Entering createApplication&quot;;
  
      LogCaptor logCaptor = LogCaptor.forClass(Test.class);
      adminAPIApplicationOpService.createApplication(TEST_SERVICE, TEST_APP + 1);
      assertTrue( logCaptor.getInfoLogs().contains(expectedInfoMessage));
  
  }
  </code></pre>