略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: MongoDB\Driver\Monitoring\LogSubscriber::log

2025-02-27

MongoDB\Driver\Monitoring\LogSubscriber::log

(mongodb >=1.17.0)

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

说明

abstract public 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.

参数

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.

返回值

没有返回值。

错误/异常

参见

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/mongodb-driver-monitoring-logsubscriber.log.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3