# logging

## logging <a href="#logging" id="logging"></a>

**Default Value:** enable

Determines whether the platform should enable or disable logging information within the scope of where the logging property is used to be shown within the call logs. The logging property can also be used to make any form item results, transfer details and variable elements (e.g. \<var>, \<assign>, \<param>) private. The values that can be used to this property are: “enable”, “disable”, and “private”.

### Example

```markup
<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
  <form id="firstform">
    <field name="myfield1" type="digits?length=5">
      <property name="logging" value="private"/>
        <prompt>
          Say or enter a five digit number.
        </prompt>
      <filled>
        <prompt>
          You entered <value expr="myfield1"/>.
        </prompt>
        <goto nextitem="myfield2"/>
      </filled>
    </field>
    <field name="myfield2" type="digits?length=6">
      <property name="logging" value="disable"/>
        <prompt>
          Say or enter a six digit number.
        </prompt>
      <filled>
        <prompt>
          You entered <value expr="myfield2"/>.
        </prompt>
        <goto next="#secondform"/>
      </filled>
    </field>
  </form>

  <form id="secondform">
    <field name="myfield3" type="digits?length=7">
      <prompt>
        Say or enter a seven digit number.
      </prompt>
      <filled>
        <prompt>
          You entered <value expr="myfield3"/>.
        </prompt>
      </filled>
    </field>
  </form>
</vxml>
```

### Explanation

From this example, logging would be private for the field-level element, myfield1, in the call logs. The TTS prompts and any input entered by the user would be marked with \<private> in the call logs. Logging would be completely disabled for the field-level element, myfield2, in the call logs. However, you would see the other field and form elements within the call logs for the rest of the application.

### Notes

This property can be implemented at the field-level, form-level, page-level, and root-level scope of your application.


---

# Agent Instructions: 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:

```
GET https://docs.plumvoice.com/dev/voicexml/properties/logging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
