Thank you Matt.
Could you Please eloborate on what you are suggesting?

Are you referring to name given in Logger.getLogger() method.

I tried this. Is not it it is just a name of logger object and no  matter
you give 2 different names, it will write to the same log file configured
for that package.
Thanks for any tips


Matt Brown-20 wrote:
> 
> A pretty simple solution would be to have each method use two different
> Logger objects (with different names).
> 

-- 
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--tp23078688p23079003.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

Reply via email to