Re: Log entries written to wrong file

2015-11-12 Thread Chinh Do
tainer's shared > lib and let each web app have its own log4j2.xml config file in > WEB-INF/classes. If you are seeing log entries written to the wrong file > this may be a bug. Is this easy to reproduce? > > Unfortunately there are currently a number of memory leaks in

Re: Log entries written to wrong file

2015-11-11 Thread Remko Popma
xml config file in WEB-INF/classes. If you are seeing log entries written to the wrong file this may be a bug. Is this easy to reproduce? Unfortunately there are currently a number of memory leaks in versions 2.4.1 and earlier. I have addressed these and the fixes will be in the next 2.5 release

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

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

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

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