Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\Driver\Monitoring\LogSubscriberMongoDB\Driver\Monitoring\SDAMSubscriber>
^MongoDB\Driver\Monitoring\LogSubscriberLast updated: Mon, 26 Oct 2026

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): void

If 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

See Also


<MongoDB\Driver\Monitoring\LogSubscriberMongoDB\Driver\Monitoring\SDAMSubscriber>
^MongoDB\Driver\Monitoring\LogSubscriberLast updated: Mon, 26 Oct 2026