*
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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: log4j updating wrong file
 
Similar Threads
log4j configuration for two application on one cluster
problem of log4j in tomcat 4.1.27
log question
how can i limit the sizes of the logs ?
How t o have multiple log files in WSAD and WAS using log4j ?