« MongoDB\Driver\Monitoring\LogSubscriber
MongoDB\Driver\Monitoring\SDAMSubscriber »

MongoDB\Driver\Monitoring\LogSubscriber::log

(mongodb >=1.17.0)

MongoDB\Driver\Monitoring\LogSubscriber::log — Notification method for a log message

説明

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

If 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.

戻り値

値を返しません。

エラー / 例外

参考

関連キーワード:
MongoDB   Driver   Monitoring   LogSubscriber   method   Notification   level   domain   subscriber   SDAMSubscriber   mongodb   abstract   severity   interface   constants   driver   component   Throws   Exception   InvalidArgumentException   argument   parsing   errors   addSubscriber   Registers
関連する関数・ページ:
class.mongodb-driver-monitoring-logsubscriber   mongodb.monitoring   mongodb-driver-monitoring-commandsubscriber.commandsucceeded   mongodb-driver-monitoring-sdamsubscriber.serveropening   mongodb-driver-monitoring-sdamsubscriber.serverclosed   mongodb-driver-monitoring-sdamsubscriber.topologyopening

他のマニュアルの関連ページ