Return-Path: Delivered-To: apmail-jakarta-log4j-user-archive@www.apache.org Received: (qmail 49802 invoked from network); 14 Nov 2003 18:19:38 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Nov 2003 18:19:38 -0000 Received: (qmail 81268 invoked by uid 500); 14 Nov 2003 18:19:25 -0000 Delivered-To: apmail-jakarta-log4j-user-archive@jakarta.apache.org Received: (qmail 81257 invoked by uid 500); 14 Nov 2003 18:19:24 -0000 Mailing-List: contact log4j-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@jakarta.apache.org Received: (qmail 81244 invoked from network); 14 Nov 2003 18:19:24 -0000 Received: from unknown (HELO web40804.mail.yahoo.com) (66.218.78.181) by daedalus.apache.org with SMTP; 14 Nov 2003 18:19:24 -0000 Message-ID: <20031114181928.80859.qmail@web40804.mail.yahoo.com> Received: from [66.210.55.126] by web40804.mail.yahoo.com via HTTP; Fri, 14 Nov 2003 10:19:28 PST Date: Fri, 14 Nov 2003 10:19:28 -0800 (PST) From: "�" Subject: Logging multiple threads to multiple files To: log4j-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-259291935-1068833968=:80648" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-259291935-1068833968=:80648 Content-Type: text/plain; charset=us-ascii I'm using log4j 1.2.8. I have a class that starts off 4 other threads. So I have 5 threads running, all at the same time. What I would like to do is log the 5 threads into their own log files. The first time I tackled this, I got 5 files with the same output (all output from all threads). Then I got it to where the 5 files show different things, however, it seems like the threads are stepping over each other. thread1 would have a log entry in thread2's log, thread2's log will have some entries in thread3's log, and so on. I've done some poking around and found that I can set a threshhold to log specific log levels to different files, but that's not what I need. I want to log ALL levels from a thread to its own log file. Can this even be done? --------------------------------- Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard --0-259291935-1068833968=:80648--