Last reviewed: 3/23/2024 12:23:37 PM

<log>

A <log> element generates a debug message.

Syntax

<log expr="expression"
     label="string" />

Attributes

expr

An optional ECMAScript expression evaluating to a string.

label

An optional string which may be used, for example, to indicate the purpose of the log.

Children

<value>

Parents

<block>, <catch>, <error>, <filled>, <help>, <if>, <noinput>, <nomatch>, and <prompt>.

Variables

none

Example

The following example illustrates logging a debug message.

<log>The card number was <value expr="card_num"/></log>

Version Information

Supported in: VoiceXML 2.0, and VoiceXML 2.1.