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.
<log expr="ECMAScript_Expression" label="String"> text </log>
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. |
<block>, <catch>, <error>, <filled>, <help>, <if>, <noinput>, <nomatch>
<value>
None.
None.
<?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>