Ouzo\Logger\LoggerInterface::warning PHP Method

warning() public method

public warning ( $message, $params = null )
    public function warning($message, $params = null);

Usage Example

示例#1
0
 /**
  * @test
  */
 public function shouldWriteWarningMessage()
 {
     //when
     $this->logger->warning('My warning log line without params.');
     //then
     $logContent = $this->_readStreamContent('test://stdout');
     Assert::thatString($logContent)->contains('2014-01-01 11:11:11: TEST Warning: [ID: ] My warning log line without params.');
 }