php-doc-en/reference/mongodb/ini.xml

134 lines
3.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<article xml:id="mongodb.configuration" xmlns="http://docbook.org/ns/docbook">
&reftitle.runtime;
&extension.runtime;
<para>
<table>
<title>mongodb &ConfigureOptions;</title>
<tgroup cols="4">
<thead>
<row>
<entry>&Name;</entry>
<entry>&Default;</entry>
<entry>&Changeable;</entry>
<entry>&Changelog;</entry>
</row>
</thead>
<tbody>
<row>
<entry><link linkend="ini.mongodb.debug">mongodb.debug</link></entry>
<entry>""</entry>
<entry>PHP_INI_ALL</entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.mongodb.mock_service_id">mongodb.mock_service_id</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_ALL</entry>
<entry>Available as of mongodb 1.11.0.</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
&ini.descriptions.title;
<para>
<variablelist>
<varlistentry xml:id="ini.mongodb.debug">
<term>
<parameter>mongodb.debug</parameter>
<type>string</type>
</term>
<listitem>
<para>
This option can be used to enable or disable trace-level debug logging in
the driver (and libmongoc).
</para>
<para>
Specify an empty string, <literal>"0"</literal>,
<literal>"off"</literal>, <literal>"no"</literal>, or
<literal>"false"</literal> to disable logging.
</para>
<para>
Specify <literal>"stderr"</literal> or <literal>"stdout"</literal> to log
to <literal>stderr</literal> or <literal>stdout</literal>, respectively.
</para>
<para>
Specify <literal>"1"</literal>, <literal>"on"</literal>,
<literal>"yes"</literal>, or <literal>"true"</literal> to log to a new
temporary file within the default system temp directory (i.e.
<function>sys_get_temp_dir</function>).
</para>
<para>
Specify any other string to log to a new temporary file within that
directory. If the directory cannot be used, the default system temp
directory will be used instead.
</para>
<note>
<para>
Please note that the debug log can contain sensitive information, such
as credentials to the MongoDB server and full documents written to or
read from the server. Please review any debug logs before sharing them
with other people.
</para>
</note>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.mongodb.mock_service_id">
<term>
<parameter>mongodb.mock_service_id</parameter>
<type>string</type>
</term>
<listitem>
<para>
This option can be used to enable or disable mocking of the
<literal>serviceId</literal> field in <literal>hello</literal> command
responses.
</para>
<para>
Specify an empty string, <literal>"0"</literal>,
<literal>"off"</literal>, <literal>"no"</literal>, or
<literal>"false"</literal> to disable mocking.
</para>
<para>
Specify <literal>"1"</literal>, <literal>"on"</literal>,
<literal>"yes"</literal>, or <literal>"true"</literal> to enable
mocking.
</para>
<note>
<para>
This option is primarily intended for internal testing of load balancers
and should not be used under normal circumstances.
</para>
</note>
</listitem>
</varlistentry>
</variablelist>
</para>
</article>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->