(mongodb >=1.17.0)

MongoDB\Driver\Monitoring\LogSubscriber::logNotification method for a log message


abstract public MongoDB\Driver\Monitoring\LogSubscriber::log(int $level, string $domain, string $message): void

If the subscriber has been registered, the driver will call this method for each logged message.

Liste de paramètres


The severity level. This will be one of the interface constants.


The name of the driver component that emitted the log message.


The log message.

Valeurs de retour

Aucune valeur n'est retournée.

Erreurs / Exceptions

  • Lance une exception MongoDB\Driver\InvalidArgumentException lors d'une erreur survenue pendant l'analyse d'un argument.

Voir aussi

add a note

User Contributed Notes

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