(No version information available, might only be in Git)
MongoLog::setModule — Sets driver functionality to log
This function can be used to set which parts of the driver's functionality should be logged. Use the constants described in the MongoLog section with bitwise operators to specify modules.
// first, turning up the logging level
// log replica set activity
// log replica sets and connection pooling
// log everything except IO activity
MongoLog::setModule(MongoLog::ALL & (~MongoLog::IO));
Note that you must also call MongoLog::setLevel() to turn on logging.
The module(s) you would like to log.