developer_guide:voicexml_references:elements:log

no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


developer_guide:voicexml_references:elements:log [2015/10/27 21:37] (current) – created borja
Line 1: Line 1:
 +====== < 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>
  • developer_guide/voicexml_references/elements/log.txt
  • Last modified: 2015/10/27 21:37
  • by borja