[jboss-user] [Installation, Configuration & Deployment] - Re: Jboss Logger
jaikiran
do-not-reply at jboss.com
Mon Jul 31 02:08:02 EDT 2006
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
More information about the jboss-user
mailing list