3 Replies Latest reply on Sep 30, 2013 12:04 PM by James Perkins

    Logging not working in 7.1. Works in 7.2

    Alexander Hartner Expert

      I am trying to configure a logger and handler in standalone-full-ha.xml

       

      <console-handler name="TRACECONSOLE">
          <level name="TRACE"/>
          <formatter>
              <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
          </formatter>
      </console-handler>            
      ..
      <logger category="com.abc.services">
          <level name="TRACE"/>
          <handlers>
              <handler name="TRACECONSOLE"/>
          </handlers>                
      </logger>
      
      

       

      and declare a dependency on log4j in the jboss-deployment-structure.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-deployment-structure> 
          <deployment> 
              <dependencies> 
                  <module name="org.apache.log4j" export="true" slot="main"/>     
              </dependencies>
              <resources>
                  <resource-root path="lib/bcprov-jdk14-131.jar" use-physical-code-source="true"/>
              </resources>
          </deployment> 
      </jboss-deployment-structure>
      

       

      Doing the same on JBoss 7.2 / JBEAP 6.1 works great, but on 7.1.3 for example nothing appears to be logged. Any pointers on what to change to get this working are truely appreciated.