<log>

<log>

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.

Attributes

Name
Data type
Description

label

String

A string used to give the log entry a label.

expr

String

An ECMAscript expression evaluating to a string.

Notes

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.

Example

<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <field name="someinput" type="digits">
      <prompt>
        Please say or enter some digits.
      </prompt>
      <filled>
        <log label="mylog">My log says <value expr="someinput"/></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

Child Tags

<value>

Parent Tags

<block>, <catch>, <error>, <filled>, <foreach>, <help>, <if>, <noinput>, <nomatch>

Last updated