1 Reply Latest reply on Feb 25, 2016 8:15 PM by James Perkins

    WildFly 9, suppressing org.springframework info level logging

    xin wu Newbie

      Hi,

       

      We are using WildFly 9's logging subsystem entirely for our application's logging, it works well for the most part, but one problem is that org.springframework and its subpackages are logging at the info level, even though it's specified in the subsystem that it should log at error level. Why is that? is there any way to suppress the info level logging for org.springframework?

       

      Thank you very much,

      William

       

      Here's the logging subsystem configuration for your reference:

       

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

                  <console-handler name="CONSOLE">

                      <level name="INFO"/>

                      <formatter>

                          <named-formatter name="COLOR-PATTERN"/>

                      </formatter>

                  </console-handler>

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

                      <level name="INFO"/>

                      <formatter>

                          <named-formatter name="PATTERN"/>

                      </formatter>

                      <file relative-to="jboss.server.log.dir" path="server.log"/>

                      <rotate-size value="10M"/>

                      <max-backup-index value="10"/>

                      <append value="true"/>

                  </size-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="org.hibernate">

                      <level name="ERROR"/>

                  </logger>

                  <logger category="org.springframework">

                      <level name="ERROR"/>

                  </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>