Login  Register

Re: New Mini-language element - <trace>

Posted by Jacques Le Roux on May 07, 2012; 8:28pm
URL: http://ofbiz.116.s1.nabble.com/New-Mini-language-element-trace-tp4615429p4615721.html

+1, sounds useful (if we finally keep minilang...)

Jacques

From: "Adrian Crum" <[hidden email]>

>I am considering adding an element to Mini-language - <trace> - to aid
> with development. The element would be used like so:
>
> <trace level="info">
> <!-- code that needs debugging goes here -->
> </trace>
>
> Each contained element will log detailed information on its internal
> state using the specified log level.
>
> A developer trying to debug a block of code can enclose it with the
> <trace> element to see what is happening internally.
>
> What do you think?
>
> -Adrian
>