Docs Menu
Docs Home
/ / /
PHP 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 extension.

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

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

  • PSR-3: Logger Interface

  • libmongoc: Logging

Back

add_logger()