We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TYPO3 9 moved the log path from from typo3temp/var/logs to var/log (outside the document root).
typo3temp/var/logs
var/log
The LoggingService currently uses the old path as target for the log:
crossmedia_fourallportal/Classes/Utility/ConstantsUtility.php
Line 13 in 3e00a60
To determine the correct path, the method \TYPO3\CMS\Core\Core\Environment::getVarPath() should be used.
\TYPO3\CMS\Core\Core\Environment::getVarPath()
Example:
protected function resolveLogFilePath(string $type, string $identity = null): string { $logFilePath = $this->getLogPath() . DIRECTORY_SEPARATOR . $type; if ($identity) { $logFilePath .= DIRECTORY_SEPARATOR . $identity; } $logFilePath .= '.log'; $path = pathinfo($logFilePath, PATHINFO_DIRNAME); @mkdir($path, 0755, true); return GeneralUtility::getFileAbsFileName($logFilePath); } protected function getLogPath(): string { return implode( DIRECTORY_SEPARATOR, [ Environment::getVarPath(), 'log', 'fourallportal' ] ); }
The constant \Crossmedia\Fourallportal\Utility\ConstantsUtility::LOG_BASEDIR could be deleted.
\Crossmedia\Fourallportal\Utility\ConstantsUtility::LOG_BASEDIR
The text was updated successfully, but these errors were encountered:
No branches or pull requests
TYPO3 9 moved the log path from from
typo3temp/var/logs
tovar/log
(outside the document root).The LoggingService currently uses the old path as target for the log:
crossmedia_fourallportal/Classes/Utility/ConstantsUtility.php
Line 13 in 3e00a60
To determine the correct path, the method
\TYPO3\CMS\Core\Core\Environment::getVarPath()
should be used.Example:
The constant
\Crossmedia\Fourallportal\Utility\ConstantsUtility::LOG_BASEDIR
could be deleted.The text was updated successfully, but these errors were encountered: