Runtime Configuration

The behaviour of these functions is affected by settings in php.ini.

mongodb Configure Options
Name Default Changeable Changelog Comments
mongodb.debug "" PHP_INI_ALL  

Here's a short explanation of the configuration directives.

mongodb.debug string

Store full activity debug log in this directory or stream. The special value "stderr" can be provided to write to STDERR.

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.