4 Replies Latest reply on Aug 18, 2015 7:04 AM by Jan Pleva

    using multiple filter-spec definitions

    Mark Lybarger Apprentice

      is it possible to specify multiple filter-spec definitions?

       

                  <console-handler name="CONSOLE">

                      <level name="INFO"/>

                      <filter-spec value="all(match(&quot;40001&quot;), levels(DEBUG))"/>

                      <filter-spec value="all(not(match(&quot;40001&quot;)), levels(INFO))"/>

                      <formatter>

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

                      </formatter>

                  </console-handler>

       

      I get an error on server startup when I add the second filter-spec,  so i suspect that it cannot.

       

      basically, I want to log debug for matching 40001, and info for the rest.