/** * {@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); }
/** * @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); }