Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function useDailyFiles(string $path, int $days = 0, string $level = 'debug', $processor = null, $formatter = null)
 {
     $this->handlerParser->parseHandler(new RotatingFileHandler($path, $days, $this->parseLevel($level)), '', '', $processor, $formatter);
 }
Exemplo n.º 2
0
 /**
  * @dataProvider formatterProvider
  */
 public function testParseHandlerWithFormatterWithDataProvider($formatter)
 {
     $logger = $this->mock(Logger::class);
     $logger->shouldReceive('pushHandler')->once()->andReturn(HandlerInterface::class);
     $handler = $this->mock(HandlerInterface::class);
     $handler->shouldReceive('setFormatter')->once();
     $parser = new HandlerParser($logger);
     $parser->parseHandler($handler, '', 'info', null, $formatter);
 }