(PECL mongo >= 1.2.3)
MongoLog::setLevel — Sets logging level
This function can be used to set how verbose logging should be and the types of activities that should be logged. Use the constants described in the MongoLog section with bitwise operators to specify levels.
// first, turning on logging for a module
// log messages of every level
// log warnings and info
// log everything except fine activity
MongoLog::setLevel(MongoLog::ALL & (~MongoLog::FINE));
Note that you must also call MongoLog::setModule() to choose what part of the driver to log.
The levels you would like to log.