Exemple #1
0
 /**
  * @return void
  */
 protected function configureLoggerProperties()
 {
     $GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'] = array($this->loggerConfiguration->getLogLevelThreshold() => array('Tx_PtExtbase_Logger_Writer_FileWriter' => array('logFile' => $this->logFilePath)));
     $GLOBALS['TYPO3_CONF_VARS']['LOG']['processorConfiguration'][LogLevel::DEBUG] = array(ReplaceComponentProcessor::class => []);
     if ($this->loggerConfiguration->weHaveAnyEmailReceivers()) {
         $GLOBALS['TYPO3_CONF_VARS']['LOG']['processorConfiguration'][$this->loggerConfiguration->getEmailLogLevelThreshold()]['Tx_PtExtbase_Logger_Processor_EmailProcessor'] = array('receivers' => $this->loggerConfiguration->getEmailReceivers());
     }
 }
 protected function prepareTestPaths()
 {
     $this->testFilePath = \PunktDe\PtExtbase\Utility\Files::concatenatePaths(array(__DIR__, 'WorkingDirectory'));
     $this->loggerConfiguration = $this->objectManager->get(\PunktDe\PtExtbase\Logger\LoggerConfiguration::class);
     $this->logFilePath = $this->loggerConfiguration->getLogFilePath();
 }