Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log4j updating wrong file

 
Prashant Saraf
Ranch Hand
Posts: 57
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where have you put the log4j.jar ?
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic