public function setLogFile($logFile)
    {
        if (strpos($logFile, '://') === false) {
            if (!GeneralUtility::isAbsPath($logFile)) {
                $logFile = PATH_site . $logFile;
            }
        }

        $this->logFile = $logFile;
        $this->openLogFile();

        return $this;
    }
public function setLogFile($logFile)
    {
        if (strpos($logFile, '://') === false) {
            if (!GeneralUtility::isAbsPath($logFile)) {
                $logFile = PATH_site . $logFile;
            }
        }

        $this->logFile = $logFile;
        $this->openLogFile();

        return $this;
    }
public function setLogFile ( $ logFile ) { if ( strpos ( $ logFile , '://' ) === false ) { if ( ! GeneralUtility :: isAbsPath ( $ logFile ) ) { $ logFile = PATH_site . $ logFile ; } } $ this -> logFile = $ logFile ; $ this -> openLogFile ( ) ; return $ this ; }
Sets the path to the log file.

Log file can be outside of given PATH_site directory

@param  string  $logFile  Path to the log file, relative to PATH_site
@return  \TYPO3\CMS\Core\Log\Writer\WriterInterface
Sets the path to the log file .