aspose file tools*
The moose likes BEA/Weblogic and the fly likes log4j updating wrong file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "log4j updating wrong file" Watch "log4j updating wrong file" New topic
Author

log4j updating wrong file

Prashant Saraf
Ranch Hand

Joined: Sep 25, 2006
Posts: 52

Hi,
I am using weblogic 8.1 and log4j, I had two application. Both had Log4j and respective log file say a.log and b.log. when i use one of them then proper logging was perform, when both application are running. which ever application requested second will updating log file. and it updates both the logs in single log file.
can any one help me on this.
Thanks
Prashant Saraf
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Where have you put the log4j.jar ?


Rahul Bhattacharjee
LinkedIn - Blog
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
The log4j jar should not be in any shared location , both the application should have its own copy of log4j jar.One jar per classloader / application.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: log4j updating wrong file