Exemplo n.º 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('PunktDe\\PtExtbase\\Logger\\Processor\\ReplaceComponentProcessor' => array());
     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('Tx_PtExtbase_Logger_LoggerConfiguration');
     $this->logFilePath = $this->loggerConfiguration->getLogFilePath();
 }