> For the complete documentation index, see [llms.txt](https://docs.plumvoice.com/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plumvoice.com/dev/voicexml/tags/log-tag.md).

# \<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>](/dev/voicexml/tags/value-tag.md)

### Parent Tags

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.plumvoice.com/dev/voicexml/tags/log-tag.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
