> -----Original Message----- > > Firstly I can not find any where a description of how to configure Log4j > using a XML file instead of a property file.
Yeah, I've been wondering about that, too. Can't say I've put too much work into figuring it out, though. > Secondly I would like to filter my output, in a way that only shows me > messages that I am interested in at the moment. > In the project I am working on, we are four developers. Using Log4j all > of us, I would get the debug messages from my colleagues and vice versa. > I also get messages from classes that I am not debugging at the moment. > With all these messages the output tends to be pretty crowded. How can I > filter the output? Well, assuming you're all working on different machines, set up different log4j config files for each developer. At my company, we do this by having different classpaths for each machine, so that different log4j.properties files get picked up. On Windows, this is done with lines like this in one of our run scripts: set CLASSPATH=%CLASSPATH%;properties\%COMPUTERNAME% set CLASSPATH=%CLASSPATH%;properties You can do the same thing on unix with $HOSTNAME. The properties directory has common properties, and properties\%COMPUTERNAME% has machine-specific ones. With the path in this order, the machine-specific properties get picked up first. ----------------------------------------------------------------- Colin MacDonald | Software Developer | Templar Corporation | --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>