Monolog\Formatter\WildfireFormatter::formatBatch PHP Метод

formatBatch() публичный Метод

public formatBatch ( array $records )
$records array
    public function formatBatch(array $records)
    {
        throw new \BadMethodCallException('Batch formatting does not make sense for the WildfireFormatter');
    }

Usage Example

 /**
  * @covers Monolog\Formatter\WildfireFormatter::formatBatch
  * @expectedException BadMethodCallException
  */
 public function testBatchFormatThrowException()
 {
     $wildfire = new WildfireFormatter();
     $record = array('level' => Logger::ERROR, 'level_name' => 'ERROR', 'channel' => 'meh', 'context' => array(), 'datetime' => new \DateTime("@0"), 'extra' => array(), 'message' => 'log');
     $wildfire->formatBatch(array($record));
 }
WildfireFormatter