<doc>
  <legacy_id>1449</legacy_id>
  <name>libURLSetLogField</name>
  <type>command</type>
  <syntax>
    <example>libURLSetLogField <i>longFieldDescriptor</i></example>
    <example>libURLSetLogField "none"</example>
  </syntax>
  <library>Internet library</library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Networks  Communication</category>
    <category>Standalone Applications</category>
  </classification>
  <references>
    <command tag="get">get Command</command>
    <command tag="post">post Command</command>
    <function tag="libURLErrorData">libURLErrorData Function</function>
    <keyword tag="long">long Keyword</keyword>
    <property tag="ID">ID Property</property>
    <property tag="name">name Property</property>
  </references>
  <history>
    <introduced version="1.1.1">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
    <network/>
  </security>
  <summary>Specifies a field for logging information about uploads and downloads.</summary>
  <examples>
    <example>libURLSetLogField "field 1"</example>
    <example>libURLSetLogField(the cLogField of me)</example>
  </examples>
  <description>
    <p>Use the <b>libURLSetLogField</b> <glossary tag="command">command</glossary> to <glossary tag="debug">debug</glossary> file transfers.</p><p/><p><b>Parameters:</b></p><p>The <i>fieldDescriptor</i> is any <glossary tag="expression">expression</glossary> that <glossary tag="evaluate">evaluates</glossary> to a <href tag="reference/object_reference.rev">field reference</href>.</p><p/><p><img src="202653"/> <b>Important!</b> The <b>libURLSetLogField</b> <glossary tag="command">command</glossary> does not accept direct <href tag="reference/object_reference.rev">field references</href>. For example, the following <glossary tag="statement">statement</glossary> causes an error message:</p><p/><p>  libURLSetLogField field "Log" --<b> CAN'T USE THIS FORM</b></p><p/><p>Instead, use a form that evaluates to a field reference, like this:</p><p/><p>  libURLSetLogField the name of field "Log" <i>-- use this form instead</i></p><p>  libURLSetLogField ("field" &amp;&amp; quote &amp; "Log" &amp; quote) <i>-- or this</i></p><p/><p><b>Comments:</b></p><p>During <b>ftp</b> and <keyword tag="http">http</keyword> transfers, LiveCode logs the data sent from the <glossary tag="server">server</glossary>. If a log field has been set, this data is placed after the log <glossary tag="field">field's</glossary> contents.</p><p/><p>To stop logging, use the following statement:</p><p/><p>  libURLSetLogField "none"</p><p/><p><img src="202653"/> <b>Important!</b> The <b>libURLSetLogField</b> <control_st tag="function">function</control_st> is part of the <glossary tag="Internet library">Internet library</glossary>. To ensure that the <control_st tag="function">function</control_st> works in a <glossary tag="standalone application">standalone application</glossary>, you must include this <glossary tag="LiveCode custom library">custom library</glossary> when you create your <glossary tag="standalone application">standalone</glossary>. In the Inclusions section of the <glossary tag="Standalone Application Settings">Standalone Application Settings</glossary> window, make sure "Internet Library" is selected in the list of script libraries.</p><p/><p><b>Note:</b> When included in a <glossary tag="standalone application">standalone application</glossary>, the <glossary tag="Internet library">Internet library</glossary> is implemented as a hidden <command tag="group">group</command> and made available when the <command tag="group">group</command> receives its first <message tag="openBackground">openBackground</message> message. During the first part of the <glossary tag="application">application's</glossary> startup process, before this <keyword tag="message box">message</keyword> is sent, the <b>libURLSetLogField</b> <control_st tag="function">function</control_st> is not yet available. This may affect attempts to use this <control_st tag="function">function</control_st> in <message tag="startup">startup</message>, <message tag="preOpenStack">preOpenStack</message>, <message tag="openStack">openStack</message>, or <message tag="preOpenCard">preOpenCardhandlers</message> in the <glossary tag="main stack">main stack</glossary>. Once the <glossary tag="application">application</glossary> has finished starting up, the <command tag="start using">library</command> is available and the <b>libURLSetLogField</b> <control_st tag="function">function</control_st> can be used in any <glossary tag="handler">handler</glossary>.</p>
  </description>
</doc>