devel:event:info_deprecation_log
Table of Contents
INFO_DEPRECATION_LOG
- Description:
- Log a call to a deprecated method, function or property
- DefaultAction:
- Log a warning to the debug log
- Preventable:
- yes
- Added:
- 2018-06-05
This event is signalled by dbg_deprecated() in inc/infoutils.php when this method is called(usually in a deprecated method), handlers can use it to log that error, for example in an external error monitoring tool.
Passed Data
The following data is available
backtrace
: A backtrace created by debug_backtrace(), adjusted to remove the debug functions themselvesalternative
: (optional) A developer-provided string describing what should be used insteadcalled
: a string describing what is deprecatedcaller
: a string describing where the deprecated thing was calledfile
: a string describing in which file the deprecated thing was calledline
: the line number where the deprecated thing was called
See also
- Code related to this event used in any DokuWiki files, plugins and templates
- The Sentry plugin uses this event
devel/event/info_deprecation_log.txt · Last modified: 2020-09-23 22:55 by Klap-in