public static void MongoLog::setCallback    ( callable $log_function   )

MongoLog::setCallbackSets a callback function to be invoked for events

log_function

The callback function to be invoked on events. It should have the following prototype:

log_function ( int $module , int $level , string $message )
module
One of the MongoLog module constants.
level
One of the MongoLog level constants.
message
The log message itself.