MongoDB\Driver\Monitoring\LogSubscriber::log

(mongodb >=1.17.0)

MongoDB\Driver\Monitoring\LogSubscriber::logNotification method for a log message

Description

abstractpublicMongoDB\Driver\Monitoring\LogSubscriber::log(int$level, string$domain, string$message): void

If the subscriber has been registered, the driver will call this method 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

To Top