4 Replies Latest reply on May 7, 2013 12:35 AM by Andrius Karpavičius

    in logging, root-logger level is ignored

    Andrius Karpavičius Newbie

      I have the following logging configuration in Jboss 7.1.3 standalone.xml:

       

      <subsystem xmlns="urn:jboss:domain:logging:1.1">

              <console-handler name="CONSOLE">

                  <level name="DEBUG"/>

                  <formatter>

                      <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                  </formatter>

              </console-handler>

              <periodic-rotating-file-handler name="FILE">

                  <level name="DEBUG"/>

                  <formatter>

                      <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                  </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="sun.rmi">

                  <level name="WARN"/>

              </logger>

              <logger category="jacorb">

                  <level name="WARN"/>

              </logger>

              <logger category="jacorb.config">

                  <level name="ERROR"/>

              </logger>

              <logger category="org.meveo" use-parent-handlers="true">

                  <level name="DEBUG"/>

              </logger>

              <root-logger>

                  <level name="ERROR"/>

                  <handlers>

                      <handler name="CONSOLE"/>

                      <handler name="FILE"/>

                  </handlers>

              </root-logger>

          </subsystem>

       

       

      I am interested in logging debug messages for org.meveo package and only error/warning messages for the rest.

       

      It seems that root-logger/level is completely ignored. My logs get saturated with debug messages from all packages (internal jboss packages, etc..). I have no log4j configuration file nor jar in my application. In application we use seam-solder loging for logging.