Configuración en tiempo de ejecución

El comportamiento de estas funciones se ve afectado por la configuración de php.ini.

Opciones de configuración de mongodb
Nombre Por defecto Cambiable Historial de cambios
mongodb.debug "" INI_ALL  
mongodb.mock_service_id "0" INI_ALL Disponible desde mongodb 1.11.0.

He aquí una breve explicación de las directivas de configuración.

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.

Nota:

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.

mongodb.mock_service_id string

This option can be used to enable or disable mocking of the serviceId field in hello command responses.

Specify an empty string, "0", "off", "no", or "false" to disable mocking.

Specify "1", "on", "yes", or "true" to enable mocking.

Nota:

This option is primarily intended for internal testing of load balancers and should not be used under normal circumstances.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top