Howdy, True. But this is trivial, is in many of the free examples, and in the archives of this list.
log4j.appender.f1=org.apache.log4j.FileAppender log4j.appender.f1.File=file1.txt log4j.appender.f1.Layout=org.apache.log4j.TTCCLayout log4j.appender.f1.additivity=false log4j.appender.f2=org.apache.log4j.FileAppender log4j.appender.f2.File=file2.txt log4j.appender.f2.Layout=org.apache.log4j.TTCCLayout log4j.appender.f2.additivity=false log4j.logger.com.mycompany.package1=DEBUG,f1 log4j.logger.com.mycompany.packagr2=DEBUG,f2 log4j.rootLogger=DEBUG Or something like that... Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Charles Hudak [mailto:[EMAIL PROTECTED] >Sent: Wednesday, October 29, 2003 4:38 PM >To: 'Log4J Users List' >Subject: RE: filter some class to one file, different class to another file > >Support Ceki and buy the manual. > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Wednesday, October 29, 2003 13:37 >To: [EMAIL PROTECTED] >Subject: 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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]