Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 74038 invoked from network); 1 Nov 2006 20:39:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2006 20:39:58 -0000 Received: (qmail 40677 invoked by uid 500); 1 Nov 2006 20:40:02 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 40634 invoked by uid 500); 1 Nov 2006 20:40:02 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 40623 invoked by uid 99); 1 Nov 2006 20:40:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2006 12:40:02 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of rahul.akolkar@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2006 12:39:49 -0800 Received: by ug-out-1314.google.com with SMTP id k3so1579518ugf for ; Wed, 01 Nov 2006 12:39:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FcHwDM9lvUIm173QfwoTq9QudM+3Rrz01nFUdtjqrNj22M9ASn+ew8vadkPmze7SLKPlP/FwstZPZrq2s2WwplivU6DhoNQ8vun/wsNFmRM78uVvfYT4ODtVeX4IzG8pl/7zEeERPoK4WpMOffB17qyXDO+H21uv2uKFslJN71U= Received: by 10.78.139.1 with SMTP id m1mr76089hud; Wed, 01 Nov 2006 12:39:27 -0800 (PST) Received: by 10.78.165.6 with HTTP; Wed, 1 Nov 2006 12:39:27 -0800 (PST) Message-ID: Date: Wed, 1 Nov 2006 15:39:27 -0500 From: "Rahul Akolkar" To: "Jakarta Commons Users List" Subject: Re: [SCXML] enabling/disabling logging for var assignments In-Reply-To: <20061101201519.65543.qmail@web50905.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061101201519.65543.qmail@web50905.mail.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org On 11/1/06, Nestor Urquiza wrote: > I will as soon as I solve another issue I am having > ... my code broke after tried to use either the > release jar file or the current svn code. > > I will open another thread with the specific issue, > OK. Note that SVN code requires the SCXML namespace to match (case sensitive): http://www.w3.org/2005/07/scxml -Rahul > Thanks, > > -nestor > > --- Rahul Akolkar wrote: > > > On 11/1/06, Nestor Urquiza > > wrote: > > > Hi guys, > > > > > > I am using a custom log library for my Bridge and > > > System layers. > > > > > > When I want to log transitions and onentry/onexit > > > events I can do it thru the SCXMLListener > > > implementation. > > > > > > However for var assignments and evaluations I > > would > > > like to know the easier way to log them. > > > > > > Right now with more than 2000 lines of scxml I > > really > > > need to trace every single assignment within the > > code. > > > > > > Also does anyone know about a plan to build an > > SCXML > > > debugger? Now that I have all the Controller logic > > > written in SCXML I really need that and before > > > writting any code I would like to hear some > > advice. > > > > > > > > > The easiest way would be to add logging statements > > in > > > > org.apache.commons.scxml.model.Var#execute(...) > > > > and > > > > org.apache.commons.scxml.model.Assign#execute(...) > > > > right at the point where any Context operation -- > > such as > > Context#set(...) -- is called. That way, it could > > simply be turned > > on/off with the JCL configuration. Should be useful > > as long as the log > > level is correct (probably, trace would be > > appropriate). > > > > If you do this for yourself, can you please submit a > > patch (svn diff)? > > > > -Rahul > > > > > > > Thanks, > > > > > > -Nestor > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org