Re: Log entries written to wrong file

2015-11-12 Thread Chinh Do
Hi Remko, If I don't disable the "Use an isolated class loader for this shared library" option, then I get various ClassNotFoundException, such as java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerAdapter. I tried moving logging related JARs into the WAR one by one and e

Re: Log entries written to wrong file

2015-11-11 Thread Remko Popma
What happens if you don't disable the "Use an isolated class loader for this shared library" option? Is there an error message? To go back to your original question: it should be possible to have the log4j jars in the web container's shared lib and let each web app have its own log4j2.xml config f

Re: Log entries written to wrong file

2015-11-11 Thread Chinh Do
I got log separation to work by copying the log4j-core*.jar and log4j-api-*.jar to the WAR's lib folder. We are using a Shared Library and I also had to disable the option "Use an isolated class loader for this shared library" for it to work. However this is not ideal as disabling "Use an isolated

Re: Log entries written to wrong file

2015-11-10 Thread Chinh Do
The manual (http://logging.apache.org/log4j/2.x/manual/logsep.html) says you can follow step (3) below to get log separation. I am not clear on what values to set for log4jContextName and log4jConfiguration, or how exactly to do it on WebSphere 8.5 Has anyone done this? Really appreciate any help i

Re: Log entries written to wrong file

2015-11-05 Thread Remko Popma
Two quick questions: What is your log4j2 version, and are you using Async Loggers? On Fri, Nov 6, 2015 at 2:17 AM, Chinh Do wrote: > Hi all, > > I am running multiple web apps (WARs) in the same WebSphere instance. Each > web app has its own log4j2.xml and is configured to write to a separate lo

Log entries written to wrong file

2015-11-05 Thread Chinh Do
Hi all, I am running multiple web apps (WARs) in the same WebSphere instance. Each web app has its own log4j2.xml and is configured to write to a separate log file. But I am seeing some log entries being written to the wrong log file. I think the problem is because we are using the log4j JARs in