Howdy, >I spent most of the day, going over the documentation on log4j and various >ways of logging under Tomcat. Great article on commons-logging vs. Log4j :) >I saw a reference to how different web-applications can have different >log4j >configurations in think again, but I am not sure where that is supposed to >be described. I have yet to see any explanation of how that is supported.
Simple: 1. Put log4j.jar in each webapp's WEB-INF/lib directory, and no where else. 2. Put log4j.properties in each webapp's WEB-INF/classes directory, and no where else. That's it. You can also doing it programmatically by writing an init servlet or servlet context listener that configure log4j. Then you can put the log4j.properties file anywhere under your webapp's root directory, and use ServletContext#getResourceAsStream(...) to get the file and feed it to PropertyConfigurator. Yoav Shapira 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]