MongoDB\remove_logger()

For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

MongoDB\remove_logger()

New in version 1.17

Definition

Unregisters a PSR logger to no longer receive log messages from the extension.

function remove_logger(Psr\Log\LoggerInterface $logger): void

Parameters

$logger : PsrLogLoggerInterface

A logger to unregister.

If the logger is not registered, the method will have no effect.

Errors/Exceptions

[MongoDB\Exception\InvalidArgumentException](https://www.mongodb.com/docs/php-library/current/reference/exception-classes.md#mongodb-phpclass-phpclass.MongoDB-Exception-InvalidArgumentException for errors related to the parsing of parameters or options.

See Also