public function someDeprecatedMethod() { GeneralUtility::deprecationLog('This method is deprecated. Use someNewMethod instead.', __METHOD__); // ... rest of method code ... }
$GLOBALS['TYPO3_CONF_VARS']['SYS']['systemLog'] = 'file,path/to/logfile.log';In this example, we configure TYPO3 to log deprecation warnings to a specific log file. The path and filename of the log file should be specified in place of `path/to/logfile.log`. The package library for the GeneralUtility class is `TYPO3.CMS.Core`.