9 Replies Latest reply on Feb 3, 2016 1:45 AM by Andreas Wagner

    Logging - Problem

    Andreas Wagner Newbie

      Hi, we are using WildFly 9.0.1 and have a "strange" logging problem. We have several servers, all running with the same WildFly configuration. But on one server we can't see some log messages from one of our java class. On the other servers they are shown without any problem. As I said the configuration of WildFly is the same. We compared the version of java too. Anyone has an idea what could be the problem? Or we configured something wrong? As I said the it is working on all other servers but not on this. And the configuration is coming from an git-repository. So it is the same. This is our logging-configuration. The problem is in the package com.sub.sub1.subsub.subsubsub. We tried to set it here the logger explicit to all but it should be already handled from com.sub.sub1. Thanks in advance

       

      Logging-configuration

      <subsystem xmlns="urn:jboss:domain:logging:3.0">
                  <console-handler name="CONSOLE">
                      <level name="ALL"/>
                      <formatter>
                          <named-formatter name="COLOR-PATTERN"/>
                      </formatter>
                  </console-handler>
                  <periodic-rotating-file-handler name="FILE" autoflush="true">
                      <level name="ALL"/>
                      <formatter>
                          <named-formatter name="PATTERN"/>
                      </formatter>
                      <file relative-to="jboss.server.log.dir" path="server.log"/>
                      <suffix value=".yyyy-MM-dd"/>
                      <append value="true"/>
                  </periodic-rotating-file-handler>
                  <logger category="com.arjuna">
                      <level name="WARN"/>
                  </logger>
                  <logger category="org.apache.tomcat.util.modeler">
                      <level name="WARN"/>
                  </logger>
                  <logger category="org.jboss.as.config">
                      <level name="DEBUG"/>
                  </logger>
                  <logger category="sun.rmi">
                      <level name="WARN"/>
                  </logger>
                  <logger category="jacorb">
                      <level name="WARN"/>
                  </logger>
                  <logger category="jacorb.config">
                      <level name="ERROR"/>
                  </logger>
                  <logger category="com.sub.sub1">
                      <level name="ALL"/>
                  </logger>
                  <logger category="com.sub.sub2">
                      <level name="ALL"/>
                  </logger>
                  <logger category="com.sub.sub3">
                      <level name="WARN"/>
                  </logger>
                  <logger category="com.sub.sub1.subsub.subsubsub">
                      <level name="ALL"/>
                  </logger>
                  <logger category="com.sub" >
                      <level name="ALL"/>
                  </logger>
        <root-logger>
                      <level name="INFO"/>
                      <handlers>
                          <handler name="CONSOLE"/>
                          <handler name="FILE"/>
                      </handlers>
                  </root-logger>
                  <formatter name="PATTERN">
                      <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>
                  </formatter>
                  <formatter name="COLOR-PATTERN">
                      <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>
                  </formatter>
              </subsystem>