MongoLog
class MongoLog (View source)
Constants
NONE |
|
ALL |
|
WARNING |
|
INFO |
|
FINE |
|
RS |
|
POOL |
|
IO |
|
SERVER |
|
PARSE |
|
CON |
|
Methods
(PECL mongo >= 1.3.0)
This function will set a callback function to be called for https://secure.php.net/manual/en/class.mongolog.php MongoLog events instead of triggering warnings.
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.
This can be used to see the log level. Use the constants described in the MongoLog section with bitwise operators to check the level.
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.
This function can be used to see which parts of the driver's functionality are being logged. Use the constants described in the MongoLog section with bitwise operators to check if specific modules are being logged.
Details
static bool
setCallback(callable $log_function)
(PECL mongo >= 1.3.0)
This function will set a callback function to be called for https://secure.php.net/manual/en/class.mongolog.php MongoLog events instead of triggering warnings.
static void
setLevel(int $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.
static int
getLevel()
This can be used to see the log level. Use the constants described in the MongoLog section with bitwise operators to check the level.
static void
setModule(int $module)
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.
static int
getModule()
This function can be used to see which parts of the driver's functionality are being logged. Use the constants described in the MongoLog section with bitwise operators to check if specific modules are being logged.