Comos\Qpm\Log\Logger::debug PHP Method

debug() public static method

public static debug ( $msg, $context = [] )
    public static function debug($msg, $context = array())
    {
        if (!self::$_impl) {
            return;
        }
        self::$_impl->debug($msg, $context = array());
    }

Usage Example

Beispiel #1
0
 public function testUseSimpleLogger()
 {
     Logger::useSimpleLogger($this->_logFile);
     Logger::info('xxinfoxx');
     Logger::err('xxerrxx');
     Logger::debug('xxdebugxx');
     $contents = file_get_contents($this->_logFile);
     $ms = null;
     $this->assertEquals(1, preg_match('/xxinfoxx/', $contents, $ms));
     $this->assertEquals(1, preg_match('/xxerrxx/', $contents, $ms));
     $this->assertEquals(1, preg_match('/xxdebugxx/', $contents, $ms));
     Logger::useNullLogger();
     Logger::info('bbbb');
     $contents1 = file_get_contents($this->_logFile);
     $this->assertEquals($contents1, $contents);
 }
All Usage Examples Of Comos\Qpm\Log\Logger::debug