Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 60946 invoked from network); 5 Aug 2004 09:10:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 5 Aug 2004 09:10:35 -0000 Received: (qmail 15707 invoked by uid 500); 5 Aug 2004 09:10:34 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 15691 invoked by uid 500); 5 Aug 2004 09:10:33 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 15672 invoked by uid 99); 5 Aug 2004 09:10:32 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [195.212.29.134] (HELO mtagate1.uk.ibm.com) (195.212.29.134) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 05 Aug 2004 02:10:30 -0700 Received: from d06nrmr1307.portsmouth.uk.ibm.com (d06nrmr1307.portsmouth.uk.ibm.com [9.149.38.129]) by mtagate1.uk.ibm.com (8.12.10/8.12.10) with ESMTP id i759AQk3195684 for ; Thu, 5 Aug 2004 09:10:27 GMT Received: from d06ml068.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1307.portsmouth.uk.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i759AA1Z222104 for ; Thu, 5 Aug 2004 10:10:26 +0100 Subject: Trace To: axis-c-dev@ws.apache.org X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003 Message-ID: From: John Hawkins Date: Thu, 5 Aug 2004 09:58:38 +0100 X-MIMETrack: Serialize by Router on D06ML068/06/M/IBM(Release 6.0.2CF2HF259 | March 11, 2004) at 05/08/2004 10:13:02 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Folks, More observations and questions - We are currently trying to track down a problem and therefore require trace. This made us look at trace ! 1) Trace seems to be used mainly for error messages rather than e.g. tracing entry and exit of methods - Fair enough. 2) Dynamic versus static initialisation of trace: Trace is currently a compile time option. This is not really very good for dealing with a customer situation where I can't really expect them to stop their system and start it again with a different version of our libraries. We have looked at trace code and concluded that it would be reasonably simple to put in the conf file a flag to say whether you wanted trace on or not. This would mean that the trace methods would always be called but the trace object (AxisTrace) would look at the flag and consider whether to actually do anything or not e.g. AxisTrace::trace(...) { if(traceOn) { tracestuff } } Now, I understand that calling a method when you might do nothing in it is not great but that's why I pointed out that really trace is not really full blown trace rather we use it more as an error message writer. In which case the trace is only used when something goes wrong and thus no performance overhead in the main line of code. Any thoughts - if not then we'll go ahead and implement the changes asap. thankyou, John.