library/helpers/ExceptionLogFileHelper.php
public function getExceptionLogFileContent()
    {
        $fileCreated = false;
        
        /** Suppress the warning, which is emitted, if the file does not exist */
        if ($fileDoesNotExist = !@file_exists($this->exceptionLogFile)) {
            $fileCreated = touch($this->exceptionLogFile);
        }
        if ($fileDoesNotExist && !$fileCreated) {
            throw new \OxidEsales\Eshop\Core\Exception\StandardException('Empty file ' . $this->exceptionLogFile . ' could not have been be created');
        }

        $logFileContent = file_get_contents($this->exceptionLogFile);
        if (false === $logFileContent) {
            throw new \OxidEsales\Eshop\Core\Exception\StandardException('File ' . $this->exceptionLogFile . ' could not be read');
        }

        return $logFileContent;
    }
public function getExceptionLogFileContent()
    {
        $fileCreated = false;
        
        /** Suppress the warning, which is emitted, if the file does not exist */
        if ($fileDoesNotExist = !@file_exists($this->exceptionLogFile)) {
            $fileCreated = touch($this->exceptionLogFile);
        }
        if ($fileDoesNotExist && !$fileCreated) {
            throw new \OxidEsales\Eshop\Core\Exception\StandardException('Empty file ' . $this->exceptionLogFile . ' could not have been be created');
        }

        $logFileContent = file_get_contents($this->exceptionLogFile);
        if (false === $logFileContent) {
            throw new \OxidEsales\Eshop\Core\Exception\StandardException('File ' . $this->exceptionLogFile . ' could not be read');
        }

        return $logFileContent;
    }
public function getExceptionLogFileContent ( ) { $ fileCreated = false ; /** Suppress the warning, which is emitted, if the file does not exist */ if ( $ fileDoesNotExist = ! @ file_exists ( $ this -> exceptionLogFile ) ) { $ fileCreated = touch ( $ this -> exceptionLogFile ) ; } if ( $ fileDoesNotExist && ! $ fileCreated ) { throw new \ OxidEsales \ Eshop \ Core \ Exception \ StandardException ( 'Empty file ' . $ this -> exceptionLogFile . ' could not have been be created' ) ; } $ logFileContent = file_get_contents ( $ this -> exceptionLogFile ) ; if ( false === $ logFileContent ) { throw new \ OxidEsales \ Eshop \ Core \ Exception \ StandardException ( 'File ' . $ this -> exceptionLogFile . ' could not be read' ) ; } return $ logFileContent ; }
Return the complete content of the exception log file as a string.

@return string Content of the exception log file

@throws \OxidEsales\Eshop\Core\Exception\StandardException if log file contend could not be read
Return the complete content of the exception log file as a string .