|
The MongoDB\Driver\Monitoring\LogSubscriber interfaceはじめにClasses implementing this interface may be registered as a subscriber and receive log messages from the extension. This is similar to stream-based debug logging (i.e. mongodb.debug) except that trace-level log messages are not received. As with stream-based logging, it is only possible to register a logger globally using MongoDB\Driver\Monitoring\addSubscriber. The extension is not able to distinguish log messages for individual MongoDB\Driver\Manager objects. インターフェイス概要MongoDB\Driver\Monitoring\LogSubscriber
class MongoDB\Driver\Monitoring\LogSubscriber
implements
MongoDB\Driver\Monitoring\Subscriber {
/* 定数 */
const
int
MongoDB\Driver\Monitoring\LogSubscriber::LEVEL_ERROR = 0;
const
int
MongoDB\Driver\Monitoring\LogSubscriber::LEVEL_CRITICAL = 1;
const
int
MongoDB\Driver\Monitoring\LogSubscriber::LEVEL_WARNING = 2;
const
int
MongoDB\Driver\Monitoring\LogSubscriber::LEVEL_MESSAGE = 3;
const
int
MongoDB\Driver\Monitoring\LogSubscriber::LEVEL_INFO = 4;
const
int
MongoDB\Driver\Monitoring\LogSubscriber::LEVEL_DEBUG = 5;
/* メソッド */
abstract public void log(int
}$level , string $domain , string $message )定義済み定数
|