Le comportement de ces fonctions est affecté par la configuration dans le fichier php.ini.
Nom | Défaut | Modifiable | Historique |
---|---|---|---|
mongodb.debug | "" | INI_ALL |
Voici un éclaircissement sur l'utilisation des directives de configuration.
mongodb.debug
string
This option can be used to enable or disable trace-level debug logging in the driver (and libmongoc).
Specify an empty string, "0"
,
"off"
, "no"
, or
"false"
to disable logging.
Specify "stderr"
or "stdout"
to log
to stderr
or stdout
, respectively.
Specify "1"
, "on"
,
"yes"
, or "true"
to log to a new
temporary file within the default system temp directory (i.e.
sys_get_temp_dir()).
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.
Note:
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.