MockLog Class Reference

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.

Detailed Description

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


Constructor & Destructor Documentation

MockLog::__construct ( print = false  ) 

Initialize the MockLog interface.

Parameters:
$print Boolean, if messages should be written to stdout

Member Function Documentation

MockLog::log ( namespace,
level,
message 
)

Log a message.

Parameters:
$namespace Namespace to write
$level Message level
$message Message

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 7 May 2015 for ninja by  doxygen 1.6.1