Generates a log message to use for performance monitoring or debugging purposes.
<log
expr = "CDATA"
label = "CDATA"
/>
Attribute |
Data Type |
Required? |
Default |
Description |
expr |
CDATA |
no |
NA |
ECMAScript expression that evaluates to the label. |
label |
CDATA |
no |
NA |
String that specifies the purpose or severity of the log message. |
<block>, <catch>, <error>, <filled>, <foreach>, <help>, <if>, <noinput>, <nomatch>
None.
<?xml version="1.0"?>
<!DOCTYPE vxml PUBLIC '-//Vision/DTD VoiceXML 2.1//EN'
'http://dtd.vision.com/voice/2.1/vision_voicexml-2.1.dtd'>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
<form id="form1">
<block name="block1">
<log expr="'Entered block1'" label="LOG-1"/>
<prompt>Currently in block one</prompt>
<goto nextitem="block2"/>
</block>
<block name="block2">
<log expr="'Entered block2'" label="LOG-2"/>
<prompt>Now in block two</prompt>
<goto next="#form2"/>
</block>
</form>
<form id="form2">
<block name="block3">
<var name="x" expr="28"/>
<log label="LOG-3" expr="'Entered block3'">
Variable x has value: <value expr="x"/>
</log>
<prompt>Now in form two</prompt>
</block>
</form>
</vxml>