略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 运行时配置

2024-12-22

运行时配置

这些函数的行为受 php.ini 中的设置影响。

mongodb 配置选项
名字 默认 可修改范围 更新日志
mongodb.debug "" PHP_INI_ALL  

这是配置指令的简短说明。

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.

注意:

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.

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/mongodb.configuration.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3