Two Laptop Bag*
The moose likes Other Open Source Projects and the fly likes How t o have multiple log files in WSAD and WAS using log4j ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How t o have multiple log files in WSAD and WAS using log4j ?" Watch "How t o have multiple log files in WSAD and WAS using log4j ?" New topic
Author

How t o have multiple log files in WSAD and WAS using log4j ?

Adam Tao
Greenhorn

Joined: May 15, 2003
Posts: 20
Hi,
I have an enterprise application including multiple modules and utility jar file.
If log4j is not used in utility jar and log4j is used in multiple modules separately, different module log messages go to different log file. There are no problems so far. But if I want to use log4j in utility jar, there is a configure file log4j.properties file in utility jar. When I start WSAD test env, an utility.log file is created. When I run the web modules, different module log messages cannot go to different log file. How can we have multiple log files when we use log4j in both utility jars and multiple web modules?
Thanks,
Adam


Adam <br /> <br />Sun Certified Enterprise Architect for J2EE<br />IBM Certified for e-business - Solution Designer<br />IBM Certified Advanced System Administrator - WebSphere Application Server V5.0<br />IBM Certified Solution Developer - XML and Related Technologies<br />IBM Enterprise Application Development with IBM WebSphere Studio, V5.0
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

This is done using log4j settings and is not specific to WebSphere.
You'll get a better answer in the Other Open Source Projects forum, so I'll move the thread there.
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How t o have multiple log files in WSAD and WAS using log4j ?