log element
The label and labelexpr attributes are mutually exclusive.
To write to the Log within a script element, use the vxmllog function. The vxmllog function does not currently support the ability to specify a label.
A single log message is limited to 1000 characters. A longer message will be truncated.
The following example writes some simple text to the log.
<?xml version="1.0"?>
<vxml version="2.1"
xmlns="http://www.w3.org/2001/vxml">
<form>
<block>
<log>Hello, world.</log>
</block>
</form>
</vxml>
The following example writes the contents of a variable to the log.
<?xml version="1.0"?>
<vxml version="2.1"
xmlns="http://www.w3.org/2001/vxml">
<form>
<var name="uid" expr="12345"/>
<block>
<log><value expr="uid"/></log>
</block>
</form>
</vxml>
The following example writes simple text and the contents of a variable to the log.
<?xml version="1.0"?>
<vxml version="2.1"
xmlns="http://www.w3.org/2001/vxml">
<form>
<var name="uid" expr="12345"/>
<block>
<log>uid is <value expr="uid"/></log>
</block>
</form>
</vxml>
Community Additions
ADD
Show: