Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 62669 invoked from network); 13 Nov 2005 07:45:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Nov 2005 07:45:21 -0000 Received: (qmail 42065 invoked by uid 500); 13 Nov 2005 07:45:20 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 42052 invoked by uid 500); 13 Nov 2005 07:45:20 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 42041 invoked by uid 99); 13 Nov 2005 07:45:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Nov 2005 23:45:20 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of samisa.abeysinghe@gmail.com designates 64.233.162.193 as permitted sender) Received: from [64.233.162.193] (HELO zproxy.gmail.com) (64.233.162.193) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Nov 2005 23:45:12 -0800 Received: by zproxy.gmail.com with SMTP id 18so927354nzp for ; Sat, 12 Nov 2005 23:44:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=Qcd/DrBLcmyEnVmVhUHVnSSKHAJqIEobIZyyrPSlgfr6H3Sqtd79eyHmAsRmrVZytGXoNzF8dGkJHHyI1TnC/HYvy4VVpgzJK2W3d3q7ZdctequjnsRn3OSI0ERz/efyVJhBsT0c7lWbQxOOu8MEMamM3OT2Aa5L66xCZAFlLqc= Received: by 10.36.247.78 with SMTP id u78mr2817909nzh; Sat, 12 Nov 2005 23:44:59 -0800 (PST) Received: from ?192.168.0.227? ( [220.247.250.161]) by mx.gmail.com with ESMTP id 10sm863255nzo.2005.11.12.23.44.57; Sat, 12 Nov 2005 23:44:58 -0800 (PST) Message-ID: <4376EEE4.6080800@gmail.com> Date: Sun, 13 Nov 2005 13:44:36 +0600 From: Samisa Abeysinghe User-Agent: Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache AXIS C User List Subject: Re: How can I see the "cout" debug info in Calculator demo References: <0413E9168E8A064AB1C9517843ACACE55FB479@XCH-SE-2V2.se.nos.boeing.com> In-Reply-To: <0413E9168E8A064AB1C9517843ACACE55FB479@XCH-SE-2V2.se.nos.boeing.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You could see the couts if you run Apache in debug mode using -X option. On linux, run: httpd -X Thanks, Samisa... Liu, Richard wrote: >Hi, > > I am new to C++ webService apache. I believe this one should be an >easy question. > > I have made "Calculator" demo C++ server and client working. > > However, if I add some debug info in the "add" function, doing >something like: > >xsd__int Calculator::add(xsd__int Value0, xsd__int Value1) >{ > #ifdef _DEBUG > cout << "************ within add new" << endl; > #endif > > int result = Value0 + Value1; > return result; >} > >I can NOT see the "cout" info in both access_log and error_log file. >Even though I: > >1) compile the so with -DDEBUG on: "g++ -shared -D_DEBUG >-I/home/liur/axis-c-1.5.0-linux-bin/include -olibCalculator.so *.cpp" > >2) change the error_log file to debug in the "httpd.conf" file (see >below): > ># ># LogLevel: Control the number of messages logged to the error_log. ># Possible values include: debug, info, notice, warn, error, crit, ># alert, emerg. ># >LogLevel debug > > >However, if I use "cerr" instead of "cout', I can see the print out. > >Can anybody tell me how can I see the "cout" info ? > > >Thanks > >Richard Liu >Software Engineer at Boeing > > > > > >