PHP - Manual: MongoDB\Driver\Monitoring\LogSubscriber::log
2025-10-24
(mongodb >=1.17.0)
MongoDB\Driver\Monitoring\LogSubscriber::log — Notification method for a log message
$level, string $domain, string $message): voidIf the subscriber is registered, this method is called for each logged message.
levelThe severity level. This will be one of the interface constants.
domainThe name of the driver component that emitted the log message.
messageThe log message.
没有返回值。
官方地址:https://www.php.net/manual/en/mongodb-driver-monitoring-logsubscriber.log.php