2 Replies Latest reply on Aug 3, 2015 7:04 PM by James Livingston

    Simple logging configuration made complex in Wildfly !

    Giridhar Shankar Newbie



           I am struggling to get log4j working in my Wildfly setup.  It is such a simple thing that JBOSS team has made it complicated unnecessarily.  Such tools must aid developers but instead it is adding more pain to the development process.  Can somebody please send me steps to get logging working in JBOSS server?  Here is my environment:


      1. Version: Wildfly 8.2.1

      2. JDK 1.8.0u51

      3. Error I get (at run time - at the line that loads Logger class): java.lang.ClassNotFoundException: org.jboss.logmanager.Level

      4. I tried all these things but in vain

           a) Tried deployment level logging

                Followed instructions posted by JBOSS and a couple of folks who claimed it worked for them - Logging Configuration - WildFly 8 - Project Documentation Editor, Using Log4J with JBoss AS 7 and WildFly.  None of these worked and I still get the same error

           b) Tried app level logging.  Disabled deployment level logging using <use-deployment-logging-config value="false" /> and specifying logging profile in the MANIFEST file


          Is there a right way to get this working?  Anybody please?