I put the log4j-1.2.8.jar in C:\Program Files\Apache Software Foundation\Tomcat 5.0\shared\lib and coded something like the following:
webapp1
-------
MDC.put("AppName", "foo");
logger.info("app1 here");webapp2
-------
MDC.put("AppName", "bar");
logger.info("app2 here");The FileAppenders I'm using are writing to the correct log files but the values in the MDC for app1 appear to overwritten by values from app2. In the debugger it appears that the same MDC object and its members are referenced by both webapps, thus explaining the overwriting part.
Can I put the log4j-1.2.8.jar in the shared/lib or common/lib and still use the MDC in this fashion?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
