5 Replies Latest reply on Apr 25, 2013 6:12 PM by James Perkins

    Too much logging in JBOSS Eap 6.0.1.GA

    akaw Newbie

      My company recently migrated from ibatis to hibernate 4.2.0.Final.  Everything seems to work fine, except that the statup logging to server.log has gone crazy.  It looks like when jboss is starting up, it is setting all of our loggers to DEBUG and then wrapping them in INFO.  Here is a quick sample:

       

      15:17:39,606 INFO  [stdout] (ServerService Thread Pool -- 58) 15:17:39.606 [ServerService Thread Pool -- 58] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.beans.factory.config.PropertyOverrideConfigurer#1'
      15:17:39,606 INFO  [stdout] (ServerService Thread Pool -- 58) 15:17:39.606 [ServerService Thread Pool -- 58] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Creating instance of bean 'org.springframework.beans.factory.config.PropertyOverrideConfigurer#1'
      15:17:39,607 INFO  [stdout] (ServerService Thread Pool -- 58) 15:17:39.607 [ServerService Thread Pool -- 58] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Eagerly caching bean 'org.springframework.beans.factory.config.PropertyOverrideConfigurer#1' to allow for resolving potential circular references

       

      This is obviously generating a ton of noise in our log files and upsetting or sys admins.  I can set the startup root-logger configuration to WARN, but then I'm losing some useful messages.  The solution I want is to not let the DEBUG statements get wrapped in INFO.

       

      Any thoughts on what is going on?  Below is logging section of standalone.xml config file that I'm using, I don't believe there are any significant changes from the distributed version.

       

       

       

       

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

                  <console-handler name="CONSOLE">

                      <level name="INFO"/>

                      <formatter>

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

                      </formatter>

                  </console-handler>

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

                      <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="false"/>

                  </periodic-rotating-file-handler>

          

                  <logger category="org.jboss.as.jpa">

                      <level name="DEBUG"/>

                  </logger>

       

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

                  <root-logger>

                      <level name="INFO"/>

                      <handlers>

                          <handler name="CONSOLE"/>

                          <handler name="FILE"/>

                      </handlers>

                  </root-logger>

              </subsystem>