/** * @return ObjectStorage */ public function getResult() { if (count($this->result) === 0) { $this->logger->info(sprintf("Command result size is %s bytes", strlen($this->rawResult)), __CLASS__); $this->buildResult(); } return $this->result; }
/** * @return void */ protected function logToApplicationLog() { $data = array(); $this->addTaskLoggerData($data); $this->logger->info(sprintf('Scheduler Task "%s" completed.', trim($this->getTaskTitle())), get_class($this), $data); }
/** * @test */ public function logInfoWithClassNameAndAdditionlData() { $this->logger->info('test', __CLASS__, array('BLA')); $this->assertLogFileContains(' component="Tx.PtExtbase.Tests.Functional.Logger.LoggerTest": test - ["BLA"]'); $this->assertLogFileContains('[INFO]'); }