Deprecations Logs
Näheres siehe TYPO3-Doku:
Disabling the deprecation log on production
<?php
use TYPO3\CMS\Core\Core\Environment;
/* Remove deprecation log in production context */
if (Environment::getContext()->isProduction()) {
unset($GLOBALS['TYPO3_CONF_VARS']['LOG']['TYPO3']['CMS']['deprecations']);
}
<?php
use Psr\Log\LogLevel;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Log\Writer\FileWriter;
/* enable deprecation logs for development context */
if (Environment::getContext()->isDevelopment()) {
$GLOBALS['TYPO3_CONF_VARS']['LOG']['TYPO3']['CMS']['deprecations']
['writerConfiguration'][LogLevel::NOTICE][FileWriter::class]
['disabled'] = false;
}