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...@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-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org