Mock log interface for op5lib Log functionality. More...
Public Member Functions | |
__construct ($print=false) | |
Initialize the MockLog interface. | |
log ($namespace, $level, $message) | |
Log a message. | |
dequeue_message () |
Mock log interface for op5lib Log functionality.
It simply accepts log messages and optionally writes them to stdout, otherwise just drop them
Useful not to depend on a writable log dir and log configuration
MockLog::__construct | ( | $ | print = false |
) |
Initialize the MockLog interface.
Boolean, if messages should be written to stdout |
MockLog::dequeue_message | ( | ) |
MockLog::log | ( | $ | namespace, | |
$ | level, | |||
$ | message | |||
) |
Log a message.
$namespace | Namespace to write | |
$level | Message level | |
$message | Message |