6 Replies Latest reply on Feb 17, 2012 9:56 AM by gonne

    JBoss7 Logging Filter

    gonne

      Hi,

       

      I would like to suppress some log messages, but I had no luck trying to use the jboss logging filter.

       

      {code:xml}

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

                  <console-handler name="CONSOLE">

                      <level name="INFO"/>

                      <filter>

                          <not>

                              <match pattern="Wait"/>

                          </not>

                      </filter>

                      <formatter>

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

                      </formatter>

                  </console-handler>

      ....

      </subsystem>

      {code}

       

      I get the following error message and no more log messages appear on the console:

       

       

      {code}

      18:05:17,667 ERROR [org.jboss.as.controller.management-operation] Operation ("add") failed - address: ([

          ("subsystem" => "logging"),

          ("console-handler" => "CONSOLE")

      ]) - failure description: "JBAS014746: pattern may not be null"

      {code}

       

      Kind regards,

      Gonne