64 parent::__construct($options);
65 if (empty($options[
'logFile'])) {
90 throw new \InvalidArgumentException(
'Log file path "' . $relativeLogFile .
'" is not valid!', 1326411176);
116 $timestamp = date(
'r', (
int)$record->
getCreated());
119 $recordData = $record->
getData();
120 if (!empty($recordData)) {
123 if (isset($recordData[
'exception']) && $recordData[
'exception'] instanceof \
Exception) {
124 $recordData[
'exception'] = (string)$recordData[
'exception'];
126 $data =
'- ' . json_encode($recordData);
130 '%s [%s] request="%s" component="%s": %s %s',
139 if (FALSE === fwrite(self::$logFileHandles[$this->logFile], $message . LF)) {
140 throw new \RuntimeException(
'Could not write log record to log file', 1345036335);
153 if (is_resource(self::$logFileHandles[$this->logFile])) {
158 self::$logFileHandles[
$this->logFile] = fopen($this->logFile,
'a');
159 if (!is_resource(self::$logFileHandles[$this->logFile])) {
160 throw new \RuntimeException(
'Could not open log file "' . $this->logFile .
'"', 1321804422);
170 if (is_resource(self::$logFileHandles[$this->logFile])) {
171 fclose(self::$logFileHandles[$this->logFile]);
172 unset(self::$logFileHandles[$this->logFile]);
183 if (file_exists($this->logFile)) {
186 $logFileDirectory = dirname($this->logFile);
187 if (!@is_dir($logFileDirectory)) {
207 if (!empty(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'generateApacheHtaccess']) && !file_exists($htaccessFile)) {
210 <IfModule !mod_authz_core.c> 217 <IfModule mod_authz_core.c>
static mkdir_deep($directory, $deepDirectory='')
static writeFile($file, $content, $changePermissions=FALSE)
static getCommonPrefix(array $paths)
__construct(array $options=array())
createHtaccessFile($htaccessFile)
setLogFile($relativeLogFile)
writeLog(LogRecord $record)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
static getFileAbsFileName($filename, $onlyRelative=TRUE, $relToTYPO3_mainDir=FALSE)
static isAbsolutePath($path)