Results 1 to 1 of 1
- 03-05-2009, 04:23 PM #1
Member
- Join Date
- Mar 2009
- Posts
- 1
- Rep Power
- 0
LOG4j Logging in Separate Files for Threads
Hi All,
I need to log the logs inside the Thread to separate Logs.
I have 2 Threads - Thread1, Thread2. These Threads are created by MyThreads() class. Whenever i try to Log using Log4j Logger instance, it is writing the logs only in one file, even though 3 log files are created.
I tried using 3 different instances of Logger for each class, but no success.
Is there any way to do this using LOG4J.
Thanks in advance.
Regards,
krishna
Similar Threads
-
log4j log files are not getting rolled over
By ajaykumar_mohini in forum New To JavaReplies: 12Last Post: 12-08-2010, 10:26 AM -
log4j log files are not getting rolled over
By ajaykumar_mohini in forum Advanced JavaReplies: 2Last Post: 12-08-2010, 06:47 AM -
combining two separate codes into one
By jaiminparikh in forum Advanced JavaReplies: 22Last Post: 02-18-2009, 05:35 PM -
Log4j (Logging Framework)
By Java Tutorial in forum Java TutorialReplies: 3Last Post: 07-01-2008, 09:20 AM -
I'm trying to add a separate dialog to a Java program...
By romina in forum AWT / SwingReplies: 1Last Post: 08-07-2007, 05:26 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks