how to log in multiple files using log4j
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lakshmi_Akella
Posted On:   Friday, January 30, 2004 02:38 PM

Hi All,

I have two classes in com.test package names A1 and A2. Both these classes use a class in com.util package called Utility.java.

When Utility.java is called from A1.java I want to write the debug statements in A1 and Utility in A1.log and When I call Utility from A2.java I want to write the debug statements in A2 and Utility.java in A2.log.

I want to configure this functionality using a properties files.

Any suggestions around this will be appreciated.

Thanks

Re: how to log in multiple files using log4j

Posted By:   Christopher_Koenigsberg  
Posted On:   Monday, February 2, 2004 06:14 AM

Pass it a different logger, as an argument, from each caller? and configure them each to a different Appender?

About | Sitemap | Contact