We use the filter for appenders. As far as categories go, I suppose you could set the
priority of "org.jboss.cache.loader.ClusteredCacheLoader" to FATAL, but that
would also cut out any ERROR messages that may be worthy of attention. I'm not sure
if category supports filters.
Here's an example file appender with a filter in it:
| <!-- A time/date based rolling appender -->
| <appender name="FILE"
class="org.jboss.logging.appender.DailyRollingFileAppender">
| <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File"
value="/var/log/jboss/server.log"/>
| <param name="Append" value="true"/>
|
| <!-- Rollover at midnight each day -->
| <param name="DatePattern"
value="'.'yyyy-MM-dd"/>
|
| <!-- Rollover at the top of each hour
| <param name="DatePattern"
value="'.'yyyy-MM-dd-HH"/>
| -->
|
| <layout class="org.apache.log4j.PatternLayout">
| <!-- The default pattern: Date Priority [Category] Message\n -->
| <param name="ConversionPattern" value="%d %-5p [%c]
%m%n"/>
|
| <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
| <param name="ConversionPattern" value="%d %-5r %-5p [%c]
(%t:%x) %m%n"/>
| -->
| </layout>
| <filter class="org.apache.log4j.varia.StringMatchFilter">
| <param name="StringToMatch" value="Perhaps we're alone
in the cluster"/>
| <param name="AcceptOnMatch" value="false"/>
| </filter>
| </appender>
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990512#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...