Skip to content

Deprecation log handling - recent changes for TYPO3 9 and 10

The upcoming TYPO3 maintenance releases for TYPO3 9 and 10 LTS include a new setting to control the deprecation log behaviour.

Our article, written back in 2018, is finally subject to deprecation itself. The upcoming versions of TYPO3 version 9 and 10 LTS (9.5.17 and 10.4.2) ship a new configuration option that allows adjusting logging behaviour. More precisely, it allows to disable certain LogWriters.

New configuration option

Starting with these releases it is therefore now easily possible to disable the deprecation log by setting this configuration option e.g. in your LocalConfiguration.php.

'LOG' => [
    'TYPO3' => [
        'CMS' => [
            'deprecations' => [
                'writerConfiguration' => [
                    \TYPO3\CMS\Core\Log\LogLevel::NOTICE => [
                        \TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
                            'disabled' => true,
                        ],
                    ],
                ],
            ],
        ],
    ],
],

New default

But there is even a little more. The deprecation log has now been disabled by default.

In order to enable it, simply visit the Configuration Presets in the Install Tool and choose the development preset, or adjust your LocalConfiguration.php.

 

This information applies to TYPO3 v9 and v10 LTS