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

info() public static method

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

Usage Example

コード例 #1
0
ファイル: LoggerTest.php プロジェクト: jinchunguang/qpm
 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::info