You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Gr...@nokia.com on 2003/10/29 22:37:19 UTC

filter some class to one file, different class to another file

Hello,

I'm new to configuring my log4j.xml file, and have been searching the log4j-user mail archives for something relevant... please help!

I would like my appender to write to a file, such that only certain java packages get written out, others get written to a different file.

For example, I want every log message from any package "com.nokia.nes.ans" and any package in the heirarchy below it.

I do NOT want stuff from "org.jboss" or "com.nokia.somethingelse" written to this log file.

How would I configure this in the log4j.xml file?

Thanks, Gretel


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org