logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Brown <Matt.Br...@citrixOnline.com>
Subject RE: Is there any way to output the log statemts from a particular method to a different log file other than what is configued for that package?
Date Thu, 16 Apr 2009 14:08:40 GMT
A pretty simple solution would be to have each method use two different Logger objects (with
different names).

-----Original Message-----
From: Vani Bandargal [mailto:vanims_98@hotmail.com] 
Sent: Thursday, April 16, 2009 10:05 AM
To: log4j-user@logging.apache.org
Subject: Is there any way to output the log statemts from a particular method to a different
log file other than what is configued for that package?


Is there any way to output the log statemts from a particular method to a different log file
other than what is configued for that package?

In other words a 2 log files for a package. First log file for some methods and the second
one is for other methods.

<p>

Ex:  package com.foo.p1

public class Tset{

private metgod 1{
//log should output in Log File1
}

private metgod2{
//log should output in Log File2
}


}

</p>
--
View this message in context: http://www.nabble.com/Is-there-any-way-to-output-the-log-statemts-from-a-particular-method-to-a-different-log-file-other-than-what-is-configued-for-that-package--tp23078688p23078688.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message