1 Reply Latest reply on Dec 14, 2017 4:04 AM by Christian Wansart

    How to use log4j2 in my ShrinkWrap container?

    Christian Wansart Newbie



      I use log4j2 for my project setup, but for some reason it does not work for my ShrinkWrap containers. I set it up like this:


      public class MyIntegrationTest {
        private static final Logger LOG = LoggerFactory.getLogger(MyIntegrationTest.class);
        public static Archive<?> createDeployment() {
          PomEquippedResolveStage pomFile = Maven.resolver().loadPomFromFile("pom.xml");
          WebArchive archive = ShrinkWrap.create(WebArchive.class)
              .addClasses(/* the required classes*/)
              .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
          return archive;
        // tests....


      The log output of the Wildfly servers used by Arquillian is just the standard one. What do I do wrong?