Return-Path: Delivered-To: apmail-xml-fop-user-archive@www.apache.org Received: (qmail 15894 invoked from network); 5 Jul 2004 08:50:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 5 Jul 2004 08:50:40 -0000 Received: (qmail 23133 invoked by uid 500); 5 Jul 2004 08:50:42 -0000 Delivered-To: apmail-xml-fop-user-archive@xml.apache.org Received: (qmail 23104 invoked by uid 500); 5 Jul 2004 08:50:41 -0000 Mailing-List: contact fop-user-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: fop-user@xml.apache.org Delivered-To: mailing list fop-user@xml.apache.org Received: (qmail 23088 invoked by uid 99); 5 Jul 2004 08:50:41 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received: from [64.4.10.108] (HELO hotmail.com) (64.4.10.108) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 05 Jul 2004 01:50:39 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Jul 2004 01:50:18 -0700 Received: from 217.41.85.61 by bay7-dav4.bay7.hotmail.com with DAV; Mon, 05 Jul 2004 08:50:18 +0000 X-Originating-IP: [217.41.85.61] X-Originating-Email: [bowditch_chris@hotmail.com] X-Sender: bowditch_chris@hotmail.com Message-ID: <40E91642.9040606@hotmail.com> Date: Mon, 05 Jul 2004 09:50:10 +0100 From: Chris Bowditch Reply-To: bowditch_chris@hotmail.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: fop-user@xml.apache.org Subject: Re: Detecting errors in rendering References: <000301c4626b$209b2e00$3200a8c0@TRITON> In-Reply-To: <000301c4626b$209b2e00$3200a8c0@TRITON> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 05 Jul 2004 08:50:18.0335 (UTC) FILETIME=[18FC1EF0:01C4626D] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Richard Evans wrote: > I�ve tried implementing my own Logger and using Driver.setLogger and > this does catch some errors. However other errors (bad property > formats, etc) seem to be reported via the static �screen logger�. I > don�t see how I can use the screen logger safely in a multi-threaded > environment. The screen logger is set by: MessageHandler.setScreenLogger(logger); However, as you've noticed, in a MT environment, the messages for different threads will be mingled together. The way I solved this problem, was to create a logger that can have many listeners which each register with the logger. The constructor for each listener records the thread name, and when starting a new thread, a new listener is registered with the logger. The logger then passes its events to registered listeners whose thread name matches the current thread. I hope this makes sense. Chris --------------------------------------------------------------------- To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org For additional commands, e-mail: fop-user-help@xml.apache.org