MongoDB\Driver\Monitoring\LogSubscriber::log
(mongodb >=1.17.0)
MongoDB\Driver\Monitoring\LogSubscriber::log — Notification method for a log message
説明
abstract public MongoDB\Driver\Monitoring\LogSubscriber::log(int
$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.
戻り値
値を返しません。
エラー / 例外
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
参考
- MongoDB\Driver\Monitoring\addSubscriber() - Registers a monitoring event subscriber globally
+add a note
User Contributed Notes
There are no user contributed notes for this page.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google