Docs Menu

Docs HomePHP Library Manual


On this page

  • Definition
  • Parameters
  • Errors/Exceptions
  • See Also

New in version 1.17.


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

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

A logger to unregister.

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

MongoDB\\Exception\\InvalidArgumentException for errors related to the parsing of parameters or options.

←  MongoDB\add_logger()MongoDB\with_transaction() →