The <log> element allows an application to generate a logging or debug message, which a developer can use to help in application development or post-execution analysis of application performance.
| label | A string used to give the log entry a label. |
| expr | An ECMAscript expression evaluating to a string. |
The contents of the log tag will be written straight into the standard logs as a "debugging" message. Verbose logging must be turned on in order to view these messages.
<?xml version="1.0"?>
<vxml version="2.0">
<form>
<field type="digits" name="f1">
<prompt>
Please say or enter some digits.
</prompt>
<filled>
<log label="mylog">My log says <value expr="f1"/></log>
</filled>
</field>
</form>
</vxml>The output of the above script would be:
Computer: Please say or enter some digits.
Human: One two three four five six seven eight nine.
The following entry would then be added to the log:
Tue 19 Nov 2002 03:24:07 PM EST (000000;001;1037737318) [mylog] LOCAL: My log says 123456789
<block>, <catch>, <error>, <filled>, <foreach>, <help>, <if>, <noinput>, <nomatch>