# \<log>

## \<log> <a href="#log" id="log"></a>

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

<table><thead><tr><th width="167.33333333333331">Name</th><th width="167">Data type<select><option value="04965b5f44534cd7a3ef32a93238d67e" label="String" color="blue"></option><option value="c74e7508061343b0ab92e34957eb8238" label="Integer" color="blue"></option><option value="f28e983c8e424522a9ebc76e7b1ddefc" label="Boolean" color="blue"></option></select></th><th>Description</th></tr></thead><tbody><tr><td>label</td><td><span data-option="04965b5f44534cd7a3ef32a93238d67e">String</span></td><td>A string used to give the log entry a label.</td></tr><tr><td>expr</td><td><span data-option="04965b5f44534cd7a3ef32a93238d67e">String</span></td><td>An ECMAscript expression evaluating to a string.</td></tr></tbody></table>

### 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

```markup
<?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>](https://docs.plumvoice.com/dev/voicexml/tags/value-tag)

### Parent Tags

[\<block>](https://docs.plumvoice.com/dev/voicexml/tags/block-tag), [\<catch>](https://docs.plumvoice.com/dev/voicexml/tags/catch-tag), [\<error>](https://docs.plumvoice.com/dev/voicexml/tags/error-tag), [\<filled>](https://docs.plumvoice.com/dev/voicexml/tags/filled-tag), [\<foreach>](https://docs.plumvoice.com/dev/voicexml/tags/foreach-tag), [\<help>](https://docs.plumvoice.com/dev/voicexml/tags/help-tag), [\<if>](https://docs.plumvoice.com/dev/voicexml/tags/if-tag), [\<noinput>](https://docs.plumvoice.com/dev/voicexml/tags/noinput-tag), [\<nomatch>](https://docs.plumvoice.com/dev/voicexml/tags/nomatch-tag)
