log4j: Log output of a specific class to a specific appender

Posted by gubrutz on Stack Overflow See other posts from Stack Overflow or by gubrutz
Published on 2010-05-04T08:10:41Z Indexed on 2010/05/04 8:28 UTC
Read the original article Hit count: 308

Filed under:
|
|
|

I use log4j and would like to route the output of certain Loggers to specific files.

I already have multiple appenders in place. Now, to make debugging easier, I want to tell log4j that the output generated by a specific class (e.g. foo.bar.Baz) should be written to a specific log file.

Can this be done?

© Stack Overflow or respective owner

Related posts about java

Related posts about log4j