Docs Menu

Docs HomePHP Library Manual

MongoDB\remove_logger()

On this page

  • Definition
  • Parameters
  • Errors/Exceptions
  • See Also

New in version 1.17.

MongoDB\\remove_logger()

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() →