Example #1
0
 public function testLogFunction()
 {
     $logger = new \FakeLogger();
     $config = array(array('path' => '\\', 'level' => \Logger\Log::INFO, 'class' => $logger));
     \Logger\Log::init($config);
     _log('func');
     $this->assert->array($logger->array)->hasSize(1)->string($logger->array[0][0])->isEqualTo('func');
 }
Example #2
0
 function logg()
 {
     \Logger\Log::getInstance()->fatal('fatal');
 }
Example #3
0
 static function _log($pMessage)
 {
     \Logger\Log::getInstance()->info($pMessage);
 }