The logger that the code is getting is not the appender, but rather the category (perhaps
it should be Lopgger.getLoggerCategory()).
If you want to log to different log files you must use different categories. Example:
<appender name="A" .../>
| <appender name="B" .../>
| <category name="a">
| <appender-ref="A"/>
| </category>
| <category name="b">
| <appender-ref="B"/>
| </category>
Your Java code then looks like:
Logger x = Logger.getLogger("a.wombat");
Logger y = Logger.getLogger("b.wombat");
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166703#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...