For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > May 2004 > log4j writing to multiple logs conditionally









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author log4j writing to multiple logs conditionally
Arvind

2004-05-23, 6:31 pm

Hi Geniuses,

Is there a way log4j could be configured to write to different files
conditionally? Let me try to explain what I need more clearly.

The application iam working on , consists of multiple Message Driven
Beans (the same can be substituted by multiple SessionBeans), each
driving a separate application. Each of these receive requests which
are ofcourse different from each other. Currently all the logs go into
a single file. I would like to know if we could configure log4j to
write it to separate files based on which Bean receives the
message/request.

Please let me know if I have been vague, and wld like me to explain it
in more detail.

Thanks
Arvind.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com