You could play with the "Threshold" attribute on the appender. You could have 2 appenders(one with Threshold set to INFO and another set to DEBUG). You could then point your logger to these 2 appenders as follows:
<category name="myPackage.myclass"> | <appender-ref ref="MY_DEBUG_LOG"/> | <appender-ref ref="MY_INFO_LOG"/> | | </category> Even after setting the threshold on the appender, you will have to make sure that the appenders log only for the *specific* log level(i.e. appender with threshold INFO should NOT log DEBUG messages), have a look at: http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=64&t=001536 http://logging.apache.org/log4j/docs/api/org/apache/log4j/varia/LevelMatchFilter.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961775#3961775 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961775 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
