Search code examples
typo3typo3-9.x

How deactivate the deprecation log in TYPO3


In TYPO3 9.5 LTS the deprecation log is not deactivated when choosing the "Configuration Preset" "Live". How is it possible to deactivate the deprecation log in 9.5 LTS?

Thanks!


Solution

  • Since TYPO3v9 the deprecation log is basically a regular log like any other and should be configured as such.

    This means a single logging framework configuration line can disable the deprecation log:

    $GLOBALS['TYPO3_CONF_VARS']['LOG']['TYPO3']['CMS']['deprecations']['writerConfiguration'][\TYPO3\CMS\Core\Log\LogLevel::NOTICE] = [];
    

    Notice (heh) that obviously fixing all deprecation notices should be preferred since the notices exist for a reason. Without any change you will most likely run into breaking changes on future TYPO3 updates. The Extension Scanner built into TYPO3 can help you here to get an overview.

    Please see Deprecation log handling in TYPO3 9 for a more in-depth explanation.