Bug #86722
closedNot possible to deactivate deprecation-log in typo3temp/var/log/
0%
Description
We are using TYPO3 9.5.0 (no composer) in production/live-mode with some well-known extensions like DCE, Gridelements and Powermail. Most extensions are developed for multiple versions for example 8.7 - 9.5, so they often use some deprecated things which are all logged in /typo3temp/var/log/typo3_deprecations_xxx.log. With TYPO3 9.5.0 it seems not possible anymore to deactivate this deprecation-log (see #82438, $GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog'] has no effect anymore), which will grow with each hit and can influence the performance. In production/live-mode this log is unnecessary.
Updated by Markus Klein over 6 years ago
- Status changed from New to Rejected
Not a bug, but a changed behavior.
Deprecations now use the normal logging API so it can all be controlled the usual way.
How to configure logging can be found in: https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Logging/Configuration/Index.html#writer-configuration
The scope used by the Core is "TYPO3.CMS.deprecations".
The default configuration is:
'LOG' => [ 'writerConfiguration' => [ \TYPO3\CMS\Core\Log\LogLevel::WARNING => [ \TYPO3\CMS\Core\Log\Writer\FileWriter::class => [] ] ], 'TYPO3' => [ 'CMS' => [ 'deprecations' => [ 'writerConfiguration' => [ \TYPO3\CMS\Core\Log\LogLevel::NOTICE => [ \TYPO3\CMS\Core\Log\Writer\FileWriter::class => [ 'logFileInfix' => 'deprecations' ], ] ] ] ] ], ],
Updated by Wittkiel Gruppe over 6 years ago
Markus Klein wrote:
Not a bug, but a changed behavior.
Deprecations now use the normal logging API so it can all be controlled the usual way.
Thanks for the hints! With this line in myext/ext_localconf.php i have disabled the deprecation-log:
$GLOBALS['TYPO3_CONF_VARS']['LOG']['TYPO3']['CMS']['deprecations']['writerConfiguration'][\TYPO3\CMS\Core\Log\LogLevel::NOTICE] = array();
Updated by Markus Klein over 5 years ago
- Related to Bug #89769: Configuration preset "Live" does not disable deprecations logs added
Updated by Stefanos Karasavvidis almost 5 years ago
to make sure I understand: in order to disable the deprecation log, I have to install a custom extension that uses the mentioned settings in it's ext_localconf.php ??
Updated by Markus Klein almost 5 years ago
- Related to Bug #84105: Log writers configured in DefaultConfiguration.php cannot be easily removed/disabled added
Updated by Markus Klein almost 5 years ago
Please see https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.5.x/Important-84105-StreamlineDeprecationLogHandling.html
With 9.5.17 and 10.4.2 things changed a lot.
Updated by Helmut Hummel almost 5 years ago
- Status changed from Rejected to Closed