php8.5
Home/ Manual/ monitoring / logsubscriber/ MongoDB\Driver\Monitoring\LogSubscriber::log

MongoDB\Driver\Monitoring\LogSubscriber::log

PHP function Edit on GitHub ✎

(mongodb >=1.17.0)

Notification method for a log message

Description

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

Void

Errors/Exceptions

See Also

Source: reference/mongodb/mongodb/driver/monitoring/logsubscriber/log.xml · from the official PHP manual (php/doc-en)