Howdy, >I think it's commons-logging, so please excuse the OT post... a test >program with the same properties file sends to both the console and the >file, so it's not Tomcat.
Are you configuring commons-logging twice? Or using commons-logging in such a way that it configures log4j twice? All loggers in log4j are additive by default. So if you add two appenders to the root logger, you will get duplicate messages like you've been having. The log4j user mailing list archives will show you many such cases, and where people have found solutions. >> BTW, do you really specify the level for each and every class in your >> properties file, or did you just give one as an example?? > >There's a line for each and every class. Why? ;) You know that getting the logger object itself in the code, which you have to do anyways in order to log anything, will do the equivalent ;) What most people do is define the logging level only for the root logger and maybe some other key loggers, but that's about it. The rest is filled in at runtime. ;) Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
