Home arrow static arrow Java Programming [Archive] - How to get log of 2 applications in the same file.
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - How to get log of 2 applications in the same file.
This topic has 2 replies on 1 page.

Posts:114
Registered: 11/18/03
How to get log of 2 applications in the same file.  
Jul 15, 2004 2:36 AM



 

Hello,

I have an application with its log.properties file. All information are logged in a file c:\log\log.txt

In my application I'm using an API and this API has a global properties files where we can also see some log4j parameters.

I would like to get the log of my application and also the log the API in the same file.

I can see both logs in the console. I tried to configure the same file name on both properties files but when the API start logging I cannot see new information in the log.
No more logs from my application and no more logs from the API.

Is anyone know how to solve this problem.

Thanks in advance for your help.

Regards,

Alain.
 

Posts:24
Registered: 6/24/03
Re: How to get log of 2 applications in the same file.  
Jul 15, 2004 2:42 AM (reply 1 of 2)



 
Every statement that writes to the log must be synchronized so that writing of multiple applications doens't cause a deadlock !!
 

Posts:114
Registered: 11/18/03
Re: How to get log of 2 applications in the same file.  
Jul 15, 2004 2:58 AM (reply 2 of 2)



 
I finally found the solution. In this case I had just to comment all log4j parameters in my API property file.

Alain.
 
This topic has 2 replies on 1 page.