array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'mongodb-driver-monitoring-logsubscriber.log.php', 1 => 'MongoDB\\Driver\\Monitoring\\LogSubscriber::log', ), 'up' => array ( 0 => 'class.mongodb-driver-monitoring-logsubscriber.php', 1 => 'MongoDB\\Driver\\Monitoring\\LogSubscriber', ), 'prev' => array ( 0 => 'class.mongodb-driver-monitoring-logsubscriber.php', 1 => 'MongoDB\\Driver\\Monitoring\\LogSubscriber', ), 'next' => array ( 0 => 'class.mongodb-driver-monitoring-sdamsubscriber.php', 1 => 'MongoDB\\Driver\\Monitoring\\SDAMSubscriber', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/monitoring/logsubscriber/log.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(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.
level
The severity level. This will be one of the interface constants.
domain
The name of the driver component that emitted the log message.
message
The log message.
没有返回值。