|
The MongoDB\Driver\Monitoring\LogSubscriber interfaceIntroductionClasses 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. Interface synopsisMongoDB\Driver\Monitoring\LogSubscriber
class MongoDB\Driver\Monitoring\LogSubscriber
implements
MongoDB\Driver\Monitoring\Subscriber {
/* Constants */
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;
/* Methods */
abstract public void log(int
}$level , string $domain , string $message )Predefined Constants
|