Show pageOld revisionsBacklinksExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== < log > ====== ===== Description ===== The < log > element allows the application to generate debug messages. This element can contain a combination of text and <value> elements in which the resulting message will be the concatenation of the text and string value of the < value > element. The messages will be logged to the metrics file for viewing. ===== Syntax ===== <code> <log expr="ECMAScript_Expression" label="String"> text </log> </code> ===== Attributes ===== |expr|The expr attribute is a string expression that will be appended to the < log > element content and label. This attribute is optional.| |label|The label attribute is a string label that will be appended to the < lo g> element content before expr. This attribute is optional.| ===== Parents ===== <code> <block>, <catch>, <error>, <filled>, <help>, <if>, <noinput>, <nomatch> </code> ===== Children ===== <code> <value> </code> ===== Extensions ===== <code> None. </code> ===== Limitations/Restrictions ===== <code> None. </code> ===== Example Code ===== <code> <?xml version="1.0"?> <vxml version="2.0" xmlns="http://www.w3.org/2001/vxml"> <form> <field name="hello"> <grammar type="text/x-grammar-choice-dtmf"> 1 {hello} | 2 {world} </grammar> <prompt>Say hello</prompt> <noinput>Say something</noinput> <filled> <log>The user said <value expr="hello"/>.</log> <prompt>Hello, world!</prompt> </filled> </field> </form> </vxml> </code> legacy/vxi_developer_guide/voicexml_references/elements/log.txt Last modified: 2017/07/28 23:53by javier