[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: log multile FILEs appender on JBoss

PeterJ do-not-reply at jboss.com
Fri Jul 25 11:46:37 EDT 2008

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#4166703

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166703

More information about the jboss-user mailing list