MongoDB\Driver\Monitoring\LogSubscriber::log
(mongodb >=1.17.0)
MongoDB\Driver\Monitoring\LogSubscriber::log — Notification method for a log message
Description
abstract public function MongoDB\Driver\Monitoring\LogSubscriber::log(int
$level, string $domain, string $message): voidIf the subscriber is registered, this method is called for each logged message.
Parameters
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.
Return Values
No value is returned.
Errors/Exceptions
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
See Also
- MongoDB\Driver\Monitoring\addSubscriber() - Registers a monitoring event subscriber globally
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
